This commit was generated by cvs2svn to track changes on a CVS vendor
[platform/upstream/binutils.git] / libiberty / waitpid.c
1 int
2 waitpid (pid, stat_loc, options)
3         int pid, *stat_loc, options;
4 {
5   for (;;)
6     {
7       int wpid = wait(stat_loc);
8       if (wpid == pid || wpid == -1)
9         return wpid;
10     }
11 }