summaryrefslogtreecommitdiff
path: root/ext/pcntl/php_pcntl.h
diff options
context:
space:
mode:
authorDavid Walker <dave@mudsite.com>2016-06-13 18:33:19 -0400
committerDavid Walker <dave@mudsite.com>2016-07-07 09:43:18 -0600
commitf64388e8c1686948d88401ae9871c87cb012b65f (patch)
tree494dcf851dc7cc7317e666817f6b62fd7880dc6b /ext/pcntl/php_pcntl.h
parentab304579ff046426f281e9a95abea8d611e38e1c (diff)
downloadphp-git-f64388e8c1686948d88401ae9871c87cb012b65f.tar.gz
pnctl_signal(): add siginfo to handler args
Feature will utilize already available siginfo parsing and extend the handler for signals to provide an array of the siginfo_t data. RFC:https://wiki.php.net/rfc/additional-context-in-pcntl-signal-handler
Diffstat (limited to 'ext/pcntl/php_pcntl.h')
-rw-r--r--ext/pcntl/php_pcntl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/pcntl/php_pcntl.h b/ext/pcntl/php_pcntl.h
index 856ebe33ef..fa000a5bbf 100644
--- a/ext/pcntl/php_pcntl.h
+++ b/ext/pcntl/php_pcntl.h
@@ -58,9 +58,11 @@ PHP_FUNCTION(pcntl_strerror);
#ifdef HAVE_SIGPROCMASK
PHP_FUNCTION(pcntl_sigprocmask);
#endif
-#if HAVE_SIGWAITINFO && HAVE_SIGTIMEDWAIT
+#ifdef HAVE_STRUCT_SIGINFO_T
+# if HAVE_SIGWAITINFO && HAVE_SIGTIMEDWAIT
PHP_FUNCTION(pcntl_sigwaitinfo);
PHP_FUNCTION(pcntl_sigtimedwait);
+# endif
#endif
PHP_FUNCTION(pcntl_exec);
#ifdef HAVE_GETPRIORITY
@@ -74,6 +76,9 @@ PHP_FUNCTION(pcntl_async_signals);
struct php_pcntl_pending_signal {
struct php_pcntl_pending_signal *next;
zend_long signo;
+#ifdef HAVE_STRUCT_SIGINFO_T
+ zend_array *siginfo;
+#endif
};
ZEND_BEGIN_MODULE_GLOBALS(pcntl)