summaryrefslogtreecommitdiff
path: root/ext/pcntl/php_signal.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_signal.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_signal.h')
-rw-r--r--ext/pcntl/php_signal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pcntl/php_signal.h b/ext/pcntl/php_signal.h
index 1ad90700e2..a1dd131ce6 100644
--- a/ext/pcntl/php_signal.h
+++ b/ext/pcntl/php_signal.h
@@ -29,7 +29,11 @@
# define SIGRTMAX 64
#endif
+#ifdef HAVE_STRUCT_SIGINFO_T
+typedef void Sigfunc(int, siginfo_t*, void*);
+#else
typedef void Sigfunc(int);
+#endif
Sigfunc *php_signal(int signo, Sigfunc *func, int restart);
Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all);