I have written following CTRL+C handler but the problem is its working fine on some hosts but not working on other hosts. Can anyone please help me out.
void signalhandler( int num)
{
signal(SIGINT, signalhandler);
}
and
EDIT:
int main()
{
signal(SIGINT, signalhandler);
/*------------------*/
}
[update from comment]
I mean the program does not terminate with CTRL + C while running on some hosts but the same program is getting terminated while running on some other hosts.