Could be an OS-dependent thing. I'm using OS X.
int_cmd(){exit 1;}trap 'int_cmd' 2;
Reply on news.ycombinator.com