mirror of
https://github.com/janet-lang/janet
synced 2025-10-12 22:37:42 +00:00
Fix windows swallowing IOCP events in many cases.
This fixes windows hanging on "failed" IO operations.
This commit is contained in:
@@ -524,9 +524,6 @@ static Janet os_proc_close(int32_t argc, Janet *argv) {
|
||||
if (proc->flags & JANET_PROC_OWNS_STDOUT) janet_file_close(proc->out);
|
||||
if (proc->flags & JANET_PROC_OWNS_STDERR) janet_file_close(proc->err);
|
||||
#endif
|
||||
proc->in = NULL;
|
||||
proc->out = NULL;
|
||||
proc->err = NULL;
|
||||
proc->flags &= ~(JANET_PROC_OWNS_STDIN | JANET_PROC_OWNS_STDOUT | JANET_PROC_OWNS_STDERR);
|
||||
if (proc->flags & (JANET_PROC_WAITED | JANET_PROC_WAITING)) {
|
||||
return janet_wrap_nil();
|
||||
|
Reference in New Issue
Block a user