• 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
Unix Signals Delivered from Quitting Cocoa Apps?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Unix Signals Delivered from Quitting Cocoa Apps?


  • Subject: Unix Signals Delivered from Quitting Cocoa Apps?
  • From: aaron smith <email@hidden>
  • Date: Mon, 13 Sep 2010 00:30:00 -0700

Hey all, quick question.

I'm working on a test to catch when an application crashes, and launch
another executable (eventually crash reporter).

I'm exhibiting strange behavior - whenever I quit the application
normally, the information I'm getting back about what happened and why
it stopped is always a signal, but the signal is never the same.

So a couple questions:

-Where can I find all of the signal definitions? I've found up to
about 50 of them, but I'm getting signals in the hundreds.
-Would you be willing to skim this code real quick?
(http://pastebin.org/859983). It's pretty short. The focus is the
main() function.

There are a couple printf's in there just so I could figure out which
signals are being reported. I'm getting all kinds. Here's a couple of
session outputs.

--
error: Interrupted system call
waited: 7095
signal: 55
--
error: Interrupted system call
waited: 7136
signal: 96
--
error: Interrupted system call
waited: 7151
signal: 111

I get these from quitting the application normally (cmd+q) or going to
the menu>quit option.

Since I'm not able to find where some of these signals are defined I'm
not sure what they are.

Alternatively, I found a list of signals that come directly from the
kernel and are sent to processes:
http://www.mugginsoft.com/content/how-crash-cocoa-app-testing-purposes-abnormal-termination
http://www.opensource.apple.com/source/xnu/xnu-1228.3.13/bsd/uxkern/ux_exception.c?f=text
would it be valid to check against those and ignore the rest?

Thanks in advance!
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Unix Signals Delivered from Quitting Cocoa Apps?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: web-based Cocoa dev docs inaccessible
  • Next by Date: Re: Unix Signals Delivered from Quitting Cocoa Apps?
  • Previous by thread: iTunes Scripting Bridge - -fullScreen not working with iTunes 10?
  • Next by thread: Re: Unix Signals Delivered from Quitting Cocoa Apps?
  • Index(es):
    • Date
    • Thread