views:

41

answers:

2

I was planning on writing a small daemon that detected whether another app crashed, thinking all the while that the system would send an NSWorkspaceDidTerminateApplicationNotification, but this is not the case.

Assuming that I do not want to create a launchd process to simply re-launch the crashed application, can I detect the crash any other way?

Perhaps I could monitor the system log? That seems unduly burdensome.

A: 

How about watching for if/when the /usr/sbin/spindump process starts up?

Dave DeLong
Interesting - I didn't think about that. I'll report back soon.
Andrew J. Freyer
A: 

Turns out what worked best as a crash monitor was reading the FSEventStream for Crash Logs.

Andrew J. Freyer