I don't have any problems using this test program:
#include <iostream>
#include <csignal>
using namespace std;
void sig_handler ( int )
{
signal ( SIGINT, sig_handler );
cout<<"Interactive attention disabled"<<endl;
}
int main()
{
signal ( SIGINT, sig_handler );
while ( 1 )
;
} Try it and see if you still have the same problem.