What's a system call ( Was: 'what' doesn't use perror...)
John Owens
john at jetson.UPMA.MD.US
Thu May 18 10:55:32 AEST 1989
In article <1232 at netcom.UUCP>, chris at netcom.UUCP (Chris Lakewood) writes:
> ] alarm(n);
> ] pause();
> ](the guts of sleep) and what happens if the process doesn't run for n
> Don't leave us in suspense... What happens if the process doesn't run for
> n seconds? Actually, the process won't run for at least n seconds unless
> it receives some signal. The pause causes the process to block until a
> signal is received.
If the process doesn't run for 'n' seconds *after* the alarm() is
posted and *before* pause() is called, it'll get a SIGALRM (which is,
I think, set to SIG_IGN at that point), not do anything, then call
pause() too late....
--
John Owens john at jetson.UPMA.MD.US uunet!jetson!john
+1 301 249 6000 john%jetson.uucp at uunet.uu.net
More information about the Comp.bugs.sys5
mailing list