List of routines safe to use in signals?

Boyd Roberts boyd at necisa.ho.necisa.oz
Wed Dec 12 10:39:52 AEST 1990


In article <RANG.90Dec10231747 at nexus.cs.wisc.edu> rang at cs.wisc.edu (Anton Rang) writes:
>
>  Anyway, is such a list available on the net somewhere?  Lacking
>that, is there a reasonable heuristic to guess what's safe?
>

Assume that nothing is safe when it comes to library routines
being called from within signal handlers.  There should be a
FAQ entry that encourages the practice of doing as little
as possible in signal handlers.

Set a flag in the signal handler and check for it elsewhere in
the code.  Keep it simple and you won't get burned.


Boyd Roberts			boyd at necisa.ho.necisa.oz.au

``When the going gets wierd, the weird turn pro...''



More information about the Comp.unix.programmer mailing list