diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-10-04 10:51:40 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-10-04 10:51:40 +0200 |
| commit | 1d29dfd03755fccc35f9468297019ce50f3c0251 (patch) | |
| tree | 2628d8b8cd06c69b9bd0c29ce127e942980c5d39 | |
| parent | ae69f4b74955cde3024cee7c2741b67445476c28 (diff) | |
kill process if waiting didn't make it exit to avoid a zombie
| -rw-r--r-- | core/os/os2/process.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/os/os2/process.odin b/core/os/os2/process.odin index c8f91fdb7..bba449de5 100644 --- a/core/os/os2/process.odin +++ b/core/os/os2/process.odin @@ -445,6 +445,7 @@ process_exec :: proc( } state, err = process_wait(process) + if !state.exited { _ = process_kill(process) } return } |