1
0
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:
Niklas Keller 2017-12-05 10:15:20 +01:00
parent 9b7f14a7e3
commit e208c9f0be
2 changed files with 1 additions and 1 deletions

View File

@ -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;
}

View File

@ -72,7 +72,6 @@ final class SocketConnector {
$deferred->fail($error);
}
$handle->pidDeferred->fail($error);
$handle->joinDeferred->fail($error);
}