mirror of
https://github.com/danog/process.git
synced 2024-11-30 04:39:04 +01:00
Fix PID deferred on early terminate
This commit is contained in:
parent
9b7f14a7e3
commit
e208c9f0be
@ -136,6 +136,7 @@ final class Runner implements ProcessRunner {
|
||||
if ($handle->childPidWatcher !== null) {
|
||||
Loop::cancel($handle->childPidWatcher);
|
||||
$handle->childPidWatcher = null;
|
||||
$handle->pidDeferred->fail(new ProcessException("The process was killed"));
|
||||
$failStart = true;
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,6 @@ final class SocketConnector {
|
||||
$deferred->fail($error);
|
||||
}
|
||||
|
||||
$handle->pidDeferred->fail($error);
|
||||
$handle->joinDeferred->fail($error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user