News for hackers. Stuff that matters.
Re:Beej's Guide to Unix Interprocess Communication by caf on Saturday December 05, 2009 @06:58PM (#978865)
Some would say that if signals are the answer, the question must be wrong.
Re:Beej's Guide to Unix Interprocess Communication by derefr on Sunday December 06, 2009 @04:45AM (#979376)
"How do you uniformly and asynchronously request that a process clean up its resources and exit, when e.g. the hardware is about to shut off?" That doesn't sound like a bad question to me.
Re:Beej's Guide to Unix Interprocess Communication by allenbrunson on Sunday December 06, 2009 @12:02AM (#979188)
the only time i've made good use of signals is for exiting. you can catch ctrl-c that way, so your app isn't forced to exit without being able to clean up. and you can install a SIGQUIT handler to take action when the os wants you to shut down.