Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!metro!cluster!necisa!boyd From: boyd@necisa.ho.necisa.oz (Boyd Roberts) Newsgroups: comp.unix.programmer Subject: Re: List of routines safe to use in signals? Message-ID: <1960@necisa.ho.necisa.oz> Date: 11 Dec 90 23:39:52 GMT References: Organization: NEC Information Systems Australia Pty. Ltd. Lines: 18 In article rang@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@necisa.ho.necisa.oz.au ``When the going gets wierd, the weird turn pro...''