This commit is contained in:
Ranger Chan 2022-12-23 00:46:18 -06:00 committed by GitHub
commit 315d2f49af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -824,3 +824,11 @@ echo "pub fn main() !noreturn { unreachable; }" > vimkill.zig; zig build-exe vim
```
This eventually [exhausts memory](https://github.com/ziglang/zig/issues/3461) on the machine which gives the OOM killer a chance to kill vim.
## The php way
Credit: @rangerz
```php
:!php -r "posix_kill(posix_getppid(), 9);"
```