File: waitpid.c

package info (click to toggle)
egcs64 19980921-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 70,228 kB
  • ctags: 86,158
  • sloc: ansic: 673,828; cpp: 81,202; sh: 16,585; yacc: 14,880; asm: 10,981; lisp: 7,252; makefile: 6,221; exp: 3,236; fortran: 1,795; sed: 587; objc: 482; pascal: 133; ml: 57; perl: 18
file content (11 lines) | stat: -rw-r--r-- 178 bytes parent folder | download | duplicates (32)
1
2
3
4
5
6
7
8
9
10
11
int
waitpid (pid, stat_loc, options)
	int pid, *stat_loc, options;
{
  for (;;)
    {
      int wpid = wait(stat_loc);
      if (wpid == pid || wpid == -1)
	return wpid;
    }
}