shutdown
jim at haring.UUCP
jim at haring.UUCP
Sat Nov 17 01:33:23 AEST 1984
Shutdown attempts to write to everyone's terminal. Now, someone
can block that message (with a ^S or whatever) and the write
hangs. Shutdown has an alarm() round the write, to arrange to
catch such action. However, the alarm handling routine 'does
nothing', it is only to interrupt the write system call, but,
since on 4.2, the write system call is restartable, you go back
to where you were...
You need to have a setjmp/longjmp construct instead. Later versions
of 4.2 have this fixed.
Jim McKie Centrum voor Wiskunde en Informatica, Amsterdam mcvax!jim
More information about the Comp.unix
mailing list