View Single Post
Old Dec 4th, 2004, 11:04 AM   #2
Eggbert
Professional Programmer
 
Eggbert's Avatar
 
Join Date: Nov 2004
Posts: 250
Rep Power: 5 Eggbert is on a distinguished road
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.
Eggbert is offline   Reply With Quote