1/* waitpid.c --- waiting for process termination, under Windows NT
2   Jim Blandy <jimb@cyclic.com> --- August 1995  */
3
4#include <assert.h>
5#include <stdio.h>
6#include <process.h>
7#include <errno.h>
8
9#include "config.h"
10
11/* Wait for the process PID to exit.  Put the return status in *statusp.
12   OPTIONS is not supported yet under Windows NT.  We hope it's always zero.  */
13pid_t waitpid (pid, statusp, options)
14     pid_t pid;
15     int *statusp;
16     int options;
17{
18    /* We don't know how to deal with any options yet.  */
19    assert (options == 0);
20
21    return _cwait (statusp, pid, _WAIT_CHILD);
22}
23