Back to index

cell-binutils  2.17cvs20070401
waitpid.c File Reference
#include "ansidecl.h"
#include <sys/types.h>

Go to the source code of this file.


pid_t waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED)

Function Documentation

pid_t waitpid ( pid_t  pid,
int stat_loc,
int options  ATTRIBUTE_UNUSED 

Definition at line 27 of file waitpid.c.

  for (;;)
      int wpid = wait(stat_loc);
      if (wpid == pid || wpid == -1)
       return wpid;