Problem with sleep and signal/alarm.

John Pochmara pochmara at ogicse.ogi.edu
Wed May 8 23:57:54 AEST 1991


In article <1991May07.221122.18325 at chinet.chi.il.us> les at chinet.chi.il.us (Leslie Mikesell) writes:
>In article <1991May6.153937.28635 at msuinfo.cl.msu.edu> winnard at 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 at cse.ogi.edu



More information about the Comp.unix.questions mailing list