I was wondering, if theres any way to capture the process finish event on the parent process, the documentation does not say which scope (pid) the binded events runs.
With some var_dumps i figured those events callbacks ocuurs on the child process. However, it is possible to run an async callback on sigchild signal on pcntl, maybe that can be used to call a event on sigchild so my parent process can be async notified that the child process ended.
I was wondering, if theres any way to capture the process finish event on the parent process, the documentation does not say which scope (pid) the binded events runs.
With some var_dumps i figured those events callbacks ocuurs on the child process. However, it is possible to run an async callback on sigchild signal on pcntl, maybe that can be used to call a event on sigchild so my parent process can be async notified that the child process ended.