Capturing SIGPIPE
Capturing SIGPIPE
- Subject: Capturing SIGPIPE
- From: Peter <email@hidden>
- Date: Mon, 24 Jan 2005 15:51:57 +0800
I have written a Cocoa program to communicate with the child process
via pipe. Sometime the child process quits or gets terminated in the
unexpected ways, on the console or debugger will show message SIGPIPE
error and my Cocoa program just quit without warning. I trace my
program lines to a write() statement which I suppose the handle have
close since the child process quits.
How do I capture SIGPIPE and also without quitting the Cocoa app ?
I suppose it would be a good idea if the Cocoa app captures this
signal, displays an Alert box and continue to do what it has been doing
before.
Thanks in advance.
Peter.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden