We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1469dd9 commit 372979fCopy full SHA for 372979f
.github/nightly.php
@@ -129,9 +129,20 @@ function (): iterable {
129
}
130
$desc = $parentPids[$res];
131
unset($parentPids[$res]);
132
- if ($status !== 0) {
+ if (pcntl_wifexited($status)) {
133
+ $status = pcntl_wexitstatus($status);
134
printMutex("Child $desc exited with status $status");
- $finalStatus = $status;
135
+ if ($status !== 0) {
136
+ $finalStatus = $status;
137
+ }
138
+ } elseif (pcntl_wifstopped($status)) {
139
+ $status = pcntl_wstopsig($status);
140
+ printMutex("Child $desc stopped by signal $status");
141
+ $finalStatus = 1;
142
+ } elseif (pcntl_wifsignaled($status)) {
143
+ $status = pcntl_wtermsig($status);
144
+ printMutex("Child $desc terminated by signal $status");
145
146
147
};
148
0 commit comments