ZF-8736: exec command into a process return exit code = -1

Description

If you're trying to use exec in a script that uses signal SIGCHLD, it will return -1 as the exit code of the command (although output is correct!).


public function start()
    {
        if (!$this->_ipcIsOkay) {
            require_once 'ZendX/Console/Process/Exception.php';
            throw new ZendX_Console_Process_Exception('Unable to create SHM segments for process communications');
        }

        // @see http://php.net/manual/en/…
        @ob_end_flush();
        
        pcntl_signal(SIGCHLD, SIG_IGN);
        ...

"pcntl_signal(SIGCHLD, SIG_IGN);" line might be removed or replaced by "pcntl_signal(SIGCHLD, SIG_DFL);" ?

Comments

No comments to display