File: waitpid.c

package info (click to toggle)
gdb 4.18.19990928-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 60,584 kB
  • ctags: 87,859
  • sloc: ansic: 730,078; exp: 37,844; sh: 16,142; makefile: 10,039; cpp: 4,670; asm: 4,139; yacc: 4,117; lisp: 2,214; perl: 1,730; sed: 620; awk: 170; fortran: 5
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;
    }
}