Riddle me on this one

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Mon Jan 23 21:07:03 UTC 2012


> From: Lennart Sorensen <lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org>

> On Sat, Jan 21, 2012 at 11:30:29PM -0500, D. Hugh Redelmeier wrote:
>>  Sidenote: many programmers don't know how to correctly handle signals
>>  in C.  In particular, the only safe thing to do in a signal handler is
>>  to set a flag and return.  The program must then check that flag
>>  frequently and act accordingly when the flag is found to be set.  For
>>  example, years ago, I could not convince the main author of PINE that
>>  doing too much in a signal handler was why PINE was breaking on
>>  Solaris.  He blamed Solaris.
> 
> That's when I stopped using pine.  That's a long time ago.

Hmm... as one who likes to do a lot in signal handler (simply because
it's nicely separated from main program), how much is too much?

--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list