Page MenuHomePhabricator

libphutil briefly made unconditional calls to pcntl_signal(), fataling on Windows
Closed, ResolvedPublic

Description

Version information:

phabricator 6725f3719da3498670e07a1922762bbb4165764d (Tue, Sep 6)
arcanist 10e5194752901959507223c01e0878e6b8312cc5 (Fri, Aug 26)
phutil c14343ee620e43f0ba55eaf80aabcba78c732d45 (Mon, Sep 5)

When executing arc diff command this happens:

PHP Fatal error:  Call to undefined function pcntl_signal() in <root_dir>\libphutil\src\future\exec\PhutilSignalRouter.php on line 16
Fatal error: Call to undefined function pcntl_signal() in <root_dir>\libphutil\src\future\exec\PhutilSignalRouter.php on line 16

Thanks in advance,
Juan

Event Timeline

What version of PHP are you running?

PHP 5.6.13 (cli) (built: Sep 3 2015 15:14:39)

Did you compile or build PHP yourself manually?

Honestly never seen these functions not included with any PHP distribution.

http://us3.php.net/manual/en/ref.pcntl.php
" Process Control support in PHP is not enabled by default. You have to compile the CGI or CLI version of PHP with --enable-pcntl configuration option when compiling PHP to enable Process Control support."

I think I broke this in D16504, I'll fix it shortly.

No, I downloaded the non thread safe php version from official site.

I regularly update the tools mentions above, and this error is the first time that happens.

I am downloading the latest php version 5.6.*: 5.6.25. I let you know if this solves the issue.

Yes my client system is Windows, while server hosting Phabricator is CentOS

I believe this is fixed in HEAD of master. Update libphutil (by running git pull in libphutil/) and let us know if you're still seeing issues?

epriestley renamed this task from arc diff crashes with exception to libphutil briefly made unconditional calls to pcntl_signal(), fataling on Windows.Sep 7 2016, 2:07 PM
epriestley claimed this task.

Presuming this is resolved, but let us know if you're still having troulbe.

Yes it is solved!

Thank you so much for your support.

Kind regards,
Juan