Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix posix_kill crashing / killing other programs on null (#68)
When `$pid` in `posix_kill($pid, $signo)` is `null` it kills other programs like Firefox, Terminal, even Gnome Shell. This patch adds a null check to avoid this. Discovered via phpactor in Sublime Text: Removing several folders in quick succession causes `posix_kill` to be called with `null`, for whatever reason, which causes a bunch of programs to crash. See phpactor/phpactor#2516. Co-authored-by: Niklas Keller <[email protected]>
- Loading branch information