Signal Troubles
Signal Troubles
- Subject: Signal Troubles
- From: Isaac Sherman <email@hidden>
- Date: Fri, 29 Mar 2002 22:18:34 -0500
I've been having a problem with signals. The line:
kill(SIGQUIT, daemonPID);
doesn't seem to do anything. The daemon I have running at the time this
line is called, has this code, which (I think) should receive the signal,
then terminate, calling my cleanup function:
signal(SIGQUIT, catch);
signal(SIGBUS, catch);
etc., including SIGSEGV.
Where catch is a pointer to this function:
void catch(int sigraised)
{
syslog(1, "Interrupt signal caught! Terminating on request...(signal
%d)", sigraised);
finishCleanup();
exit(0);
}
Any ideas why this doesn't work?
TIA,
--
Isaac Sherman
MotaSoft Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.