33 struct sigaction
Foam::sigInt::oldAction_;
43 if (sigaction(SIGINT, &oldAction_, NULL) < 0)
46 <<
"Cannot reset SIGINT trapping"
80 struct sigaction newAction;
81 newAction.sa_handler = sigHandler;
82 newAction.sa_flags = SA_NODEFER;
83 sigemptyset(&newAction.sa_mask);
84 if (sigaction(SIGINT, &newAction, &oldAction_) < 0)
87 <<
"Cannot call sigInt::set() more than once"
99 if (sigaction(SIGINT, &oldAction_, NULL) < 0)
102 <<
"Cannot set SIGINT trapping"