• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Signal Troubles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Transparent window, opaque contents
  • Next by Date: Problem with [NSImage imageFileTypes] in two different contexts
  • Previous by thread: Re: Transparent window, opaque contents
  • Next by thread: Problem with [NSImage imageFileTypes] in two different contexts
  • Index(es):
    • Date
    • Thread