Skip to content

Commit

Permalink
Await process termination @ kill
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Jul 25, 2018
1 parent 416f916 commit 1c8bf5e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ public function kill(): void
}

$this->processRunner->kill($this->handle);

try {
$this->processRunner->join($this->handle);
} catch (\Throwable $e) {
// ignore here
}
}

/**
Expand Down

0 comments on commit 1c8bf5e

Please sign in to comment.