Hi All,
Long-time lurker, first time questioner here. I'm currently working on a
project wherein I end up forking off many subprocesses, but am trying to
keep tabs on the progress of individual forks by having the children send a
signal back up to their parent every so often.
pcntl_socket, allows me to listen for expected user signals from processes,
however, the handler only allows a single argument the signalnumber. I
would like to extend the handler to accept a possible second argument. If
compiled on a system with __siginfo_t it would use SA_SIGINFO when setting
up the signal listener, and populate a second argument to the user-callback
which could be an array with at leas sa_pid and sa_uid (contents of _kill).
So I'd like to source the list to see if this would be something that would
be welcomed, or if there would be other ideas on how to get some more info
of the signal back to the PHP-side of the pcntl_signal.
--
Dave