mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-04-30 02:36:54 +02:00
Describe the effect of !noreturn
This commit is contained in:
parent
d97f16c0b3
commit
4b9a00e96f
1 changed files with 2 additions and 0 deletions
|
@ -801,3 +801,5 @@ Credit: @tauoverpi
|
||||||
```zig
|
```zig
|
||||||
echo "pub fn main() !noreturn { unreachable; }" > vimkill.zig; zig build-exe vimkill.zig
|
echo "pub fn main() !noreturn { unreachable; }" > vimkill.zig; zig build-exe vimkill.zig
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This eventually [exhausts memory](https://github.com/ziglang/zig/issues/3461) on the machine which gives the OOM killer a chance to kill vim.
|
||||||
|
|
Loading…
Add table
Reference in a new issue