Hi all,
could someone tell me, how can I make my C/C++ program be stopped by pressing Ctrl+C and not seeing "^C" later?
I do by
void sig_INT( int a )
{
exit( 0 );
}
int main( .. )
..
signal( SIGINT, sig_INT );
signal( SIGTERM, sig_INT );
signal( SIGHUP, sig_INT );
..
That's handled by the console, not the program, so it's not possible to do it from the program itself.