* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* wait for a child to die
* integer wait, status, chilid
* chilid will be - >0 if child process id
* - <0 if (negative of) system error code
* status will contain the exit status of the child