Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ogicse!pochmara From: pochmara@ogicse.ogi.edu (John Pochmara) Newsgroups: comp.unix.questions Subject: Re: Problem with sleep and signal/alarm. Message-ID: <21097@ogicse.ogi.edu> Date: 8 May 91 13:57:54 GMT References: <1991May6.153937.28635@msuinfo.cl.msu.edu> <1991May07.221122.18325@chinet.chi.il.us> Organization: Oregon Graduate Institute (formerly OGC), Beaverton, OR Lines: 10 In article <1991May07.221122.18325@chinet.chi.il.us> les@chinet.chi.il.us (Leslie Mikesell) writes: >In article <1991May6.153937.28635@msuinfo.cl.msu.edu> winnard@frith.msu.edu () writes: >No need for the sleep(), just set up the alarm signal handler, do an >alarm(), and then read(). Under SysV, the read() will return with >an error, under BSD you have to longjmp() out of the signal handler. You can also use sigpause(2) on BSD machines. --John pochmara@cse.ogi.edu