List of routines safe to use in signals?

Curtis Yarvin cgy at cs.brown.edu
Wed Dec 12 15:47:29 AEST 1990


In article <1960 at necisa.ho.necisa.oz> boyd at necisa.ho.necisa.oz (Boyd Roberts) writes:
>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.

Hey, excuse me if I'm being a complete newbie.  But how can a reentrant
library routine, say "strcpy", cause problems in this case?

>Boyd Roberts			boyd at necisa.ho.necisa.oz.au
>``When the going gets weird, the weird turn pro...''

Curtis

"I tried living in the real world
 Instead of a shell
 But I was bored before I even began." - The Smiths



More information about the Comp.unix.programmer mailing list