php - Is it possible to set the process group of a child process with PCNTL? -
the man page pcntl_waitpid() documents following option:
wait child process process group id equal absolute value of pid.
i'm interested feature (waiting some child processes, not all), can't find reference how set process group id of child process.
is possible @ pcntl?
found it. pcntl not offer function, posix extension offer posix_setpgid():
bool posix_setpgid ( int $pid , int $pgid )
Comments
Post a Comment