fix deadlock when in write_errno_to_parent_and_abort state

This commit is contained in:
Laytan
2024-10-04 13:24:14 +02:00
parent 386f144cca
commit 563ed69c28
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ _process_start :: proc(desc: Process_Desc) -> (process: Process, err: Error) {
#assert(len(posix.Errno) < max(u8))
errno := u8(posix.errno())
posix.write(parent_fd, &errno, 1)
runtime.trap()
posix.exit(126)
}
null := posix.open("/dev/null", {.RDWR})