home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source: /unixb/home/unixlib/source/unixlib37/src/unix/c/RCS/wait,v $
- * $Date: 1996/05/06 09:01:35 $
- * $Revision: 1.2 $
- * $State: Rel $
- * $Author: unixlib $
- *
- * $Log: wait,v $
- * Revision 1.2 1996/05/06 09:01:35 unixlib
- * Updates to sources made by Nick Burrett, Peter Burwood and Simon Callan.
- * Saved for 3.7a release.
- *
- * Revision 1.1 1996/04/19 21:35:27 simon
- * Initial revision
- *
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id: wait,v 1.2 1996/05/06 09:01:35 unixlib Rel $";
-
- #include <sys/wait.h>
- #include <sys/types.h>
-
- /* Wait for a child to die. When one does, put its status in *status
- and return its process ID. For errors, return -1. */
-
- pid_t
- wait (int *status)
- {
- return wait4 (WAIT_ANY, status, 0, 0);
- }
-