mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
nohang flag
This commit is contained in:
@@ -1290,7 +1290,7 @@ pub const Subprocess = struct {
|
||||
this.has_waitpid_task = true;
|
||||
const pid = this.pid;
|
||||
|
||||
switch (PosixSpawn.waitpid(pid, 0)) {
|
||||
switch (PosixSpawn.waitpid(pid, if (sync) 0 else std.os.W.NOHANG)) {
|
||||
.err => |err| {
|
||||
this.waitpid_err = err;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user