|
|
|
@ -51,6 +51,7 @@ function_entry pcntl_functions[] = { |
|
|
|
PHP_FE(pcntl_wtermsig, NULL) |
|
|
|
PHP_FE(pcntl_wstopsig, NULL) |
|
|
|
PHP_FE(pcntl_exec, NULL) |
|
|
|
PHP_FE(pcntl_alarm, NULL) |
|
|
|
{NULL, NULL, NULL} |
|
|
|
}; |
|
|
|
|
|
|
|
@ -216,6 +217,19 @@ PHP_FUNCTION(pcntl_fork) |
|
|
|
} |
|
|
|
/* }}} */ |
|
|
|
|
|
|
|
/* {{{ proto int pcntl_alarm(int seconds) |
|
|
|
Set an alarm clock for delivery of a signal*/ |
|
|
|
PHP_FUNCTION(pcntl_alarm) |
|
|
|
{ |
|
|
|
long seconds; |
|
|
|
|
|
|
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &seconds) == FAILURE) |
|
|
|
return; |
|
|
|
|
|
|
|
RETURN_LONG ((long) alarm(seconds)); |
|
|
|
} |
|
|
|
/* }}} */ |
|
|
|
|
|
|
|
/* {{{ proto int pcntl_waitpid(long pid, long status, long options) |
|
|
|
Waits on or returns the status of a forked child as defined by the waitpid() system call */ |
|
|
|
PHP_FUNCTION(pcntl_waitpid) |
|
|
|
|