File: waitpid.c

package info (click to toggle)
ddd 3.0-1
  • links: PTS
  • area: contrib
  • in suites: slink
  • size: 17,008 kB
  • ctags: 10,942
  • sloc: cpp: 79,310; ansic: 14,449; sh: 3,097; makefile: 1,757; pascal: 131; java: 123; sed: 113; fortran: 61; awk: 24
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;
    }
}