delorie.com/djgpp/doc/libc/libc_859.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

waitpid

Syntax

 
#include <sys/wait.h>

pid_t pid = waitpid((pid_t pid, int *status, int options);

Description

Currently, this function always fails. A -1 is returned and errno is set to indicate there are no children.

Return Value

If successful, this function returns the exit status of the child. If there is an error, these functions return -1 and set errno to indicate the error type.

Bugs

Currently, this function always fails.

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004