mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Merge pull request #1172 from rockorager/delay_syscall
termio: delay repeated `waitpid` syscalls when killing children
This commit is contained in:
@ -1179,6 +1179,7 @@ const Subprocess = struct {
|
||||
// kill them again.
|
||||
const res = std.os.waitpid(pid, std.c.W.NOHANG);
|
||||
if (res.pid != 0) break;
|
||||
std.time.sleep(10 * std.time.ns_per_ms);
|
||||
}
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user