cvs: php-src /ext/pcntl pcntl.c

From: Date: Thu, 27 Apr 2006 15:21:01 +0000
Subject: cvs: php-src /ext/pcntl pcntl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-37943@lists.php.net to get a copy of this message
andrei Thu Apr 27 15:21:01 2006 UTC Modified files: /php-src/ext/pcntl pcntl.c Log: Safe-fy some functions. http://cvs.php.net/viewcvs.cgi/php-src/ext/pcntl/pcntl.c?r1=1.51&r2=1.52&diff_format=u Index: php-src/ext/pcntl/pcntl.c diff -u php-src/ext/pcntl/pcntl.c:1.51 php-src/ext/pcntl/pcntl.c:1.52 --- php-src/ext/pcntl/pcntl.c:1.51 Sun Jan 1 13:09:52 2006 +++ php-src/ext/pcntl/pcntl.c Thu Apr 27 15:21:00 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pcntl.c,v 1.51 2006/01/01 13:09:52 sniper Exp $ */ +/* $Id: pcntl.c,v 1.52 2006/04/27 15:21:00 andrei Exp $ */ #define PCNTL_DEBUG 0 @@ -213,7 +213,7 @@ php_info_print_table_end(); } -/* {{{ proto int pcntl_fork(void) +/* {{{ proto int pcntl_fork(void) U Forks the currently running process following the same behavior as the UNIX fork() system call*/ PHP_FUNCTION(pcntl_fork) { @@ -228,7 +228,7 @@ } /* }}} */ -/* {{{ proto int pcntl_alarm(int seconds) +/* {{{ proto int pcntl_alarm(int seconds) U Set an alarm clock for delivery of a signal*/ PHP_FUNCTION(pcntl_alarm) { @@ -241,7 +241,7 @@ } /* }}} */ -/* {{{ proto int pcntl_waitpid(int pid, int &status, int options) +/* {{{ proto int pcntl_waitpid(int pid, int &status, int options) U Waits on or returns the status of a forked child as defined by the waitpid() system call */ PHP_FUNCTION(pcntl_waitpid) { @@ -265,7 +265,7 @@ } /* }}} */ -/* {{{ proto int pcntl_wait(int &status) +/* {{{ proto int pcntl_wait(int &status) U Waits on or returns the status of a forked child as defined by the waitpid() system call */ PHP_FUNCTION(pcntl_wait) { @@ -296,7 +296,7 @@ } /* }}} */ -/* {{{ proto bool pcntl_wifexited(int status) +/* {{{ proto bool pcntl_wifexited(int status) U Returns true if the child status code represents a successful exit */ PHP_FUNCTION(pcntl_wifexited) { @@ -316,7 +316,7 @@ } /* }}} */ -/* {{{ proto bool pcntl_wifstopped(int status) +/* {{{ proto bool pcntl_wifstopped(int status) U Returns true if the child status code represents a stopped process (WUNTRACED must have been used with waitpid) */ PHP_FUNCTION(pcntl_wifstopped) { @@ -336,7 +336,7 @@ } /* }}} */ -/* {{{ proto bool pcntl_wifsignaled(int status) +/* {{{ proto bool pcntl_wifsignaled(int status) U Returns true if the child status code represents a process that was terminated due to a signal */ PHP_FUNCTION(pcntl_wifsignaled) { @@ -356,7 +356,7 @@ } /* }}} */ -/* {{{ proto int pcntl_wexitstatus(int status) +/* {{{ proto int pcntl_wexitstatus(int status) U Returns the status code of a child's exit */ PHP_FUNCTION(pcntl_wexitstatus) { @@ -379,7 +379,7 @@ } /* }}} */ -/* {{{ proto int pcntl_wtermsig(int status) +/* {{{ proto int pcntl_wtermsig(int status) U Returns the number of the signal that terminated the process who's status code is passed */ PHP_FUNCTION(pcntl_wtermsig) { @@ -400,7 +400,7 @@ } /* }}} */ -/* {{{ proto int pcntl_wstopsig(int status) +/* {{{ proto int pcntl_wstopsig(int status) U Returns the number of the signal that caused the process to stop who's status code is passed */ PHP_FUNCTION(pcntl_wstopsig) { @@ -574,7 +574,7 @@ /* }}} */ #ifdef HAVE_GETPRIORITY -/* {{{ proto int pcntl_getpriority([int pid [, int process_identifier]]) +/* {{{ proto int pcntl_getpriority([int pid [, int process_identifier]]) U Get the priority of any process */ PHP_FUNCTION(pcntl_getpriority) { @@ -612,7 +612,7 @@ #endif #ifdef HAVE_SETPRIORITY -/* {{{ proto bool pcntl_setpriority(int priority [, int pid [, int process_identifier]]) +/* {{{ proto bool pcntl_setpriority(int priority [, int pid [, int process_identifier]]) U Change the priority of any process */ PHP_FUNCTION(pcntl_setpriority) {

« previous php.cvs (#37943) next »