Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.questions Subject: Re: Signal handlers and errno Message-ID: <5482:Jan422:54:4191@kramden.acf.nyu.edu> Date: 4 Jan 91 22:54:41 GMT References: <25390@adm.brl.mil> Organization: IR Lines: 10 In article <25390@adm.brl.mil> MANNS%DBNPIB5.BITNET@cunyvm.cuny.edu (Jochen Manns, PI der Uni Bonn, 732738/3611) writes: [ a signal handler may modify errno ] > For now I keep track on 'errno' in the signal handler but I > want to ask you if there is no better method to solve such > problems. Saving and restoring errno is the correct method. The only ``better'' solution is not to make system calls inside handlers in the first place. ---Dan