[927] in Moira
POSIX update_server fixed
daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Wed Oct 18 00:00:09 1995
From: Jonathon Weiss <jweiss@MIT.EDU>
To: moiradev@MIT.EDU
Date: Tue, 17 Oct 1995 23:59:55 EDT
kcr noted that update_server always returned an error after executing
a file on Solaris, and tracked it down to the code that deals with
wait()-ing on the sh process. The old code would return an error if
the sh process exited (regardless of the exit status). The new code
returns an error if sh exits wiht a non-zero status or if it is killed
with a signal. However, if sh is killed with a signal the error
reported is bogus (this is the same as the non-POSIX code). I have
applied the patch below and rebuilt for Solaris and rsaix (no one ever
seems to have noticed that the RS6000's had this problem too, but they
did). The new binaries have been placed in the moira locker, and it
has been released.
In the process, I noticed that sh will exite with error -105 (151) if
you kill -STOP a process it is running.
Jonathon