mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-22 13:30:54 +01:00
5451d28752
Summary: See <https://discourse.phabricator-community.org/t/failed-arc-patch-does-not-return-non-zero-exit-code/3584>. Returning an integer from a top-level PHP file doesn't actually affect the process exit code, as much as I might wish it does. Test Plan: Ran `arc patch adflsnadfsln; echo $?`, saw a nonzero exit code after this fix. Differential Revision: https://secure.phabricator.com/D21037
10 lines
200 B
PHP
Executable file
10 lines
200 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
if (function_exists('pcntl_async_signals')) {
|
|
pcntl_async_signals(true);
|
|
} else {
|
|
declare(ticks = 1);
|
|
}
|
|
|
|
require_once dirname(__DIR__).'/support/init/init-arcanist.php';
|