mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
close handle
This commit is contained in:
@@ -600,6 +600,7 @@ fptr_finalize(mrb_state *mrb, struct mrb_io *fptr, int quiet)
|
||||
if (WaitForSingleObject(h, INFINITE) && GetExitCodeProcess(h, &status))
|
||||
if (!quiet)
|
||||
io_set_process_status(mrb, fptr->pid, (int)status);
|
||||
CloseHandle(h);
|
||||
#endif
|
||||
fptr->pid = 0;
|
||||
/* Note: we don't raise an exception when waitpid(3) fails */
|
||||
|
||||
Reference in New Issue
Block a user