termio/exec: poll() needs a negative timeout to block 🤡

This commit is contained in:
Mitchell Hashimoto
2023-08-08 09:14:08 -07:00
parent c2137360f4
commit c0f5c0ef41

View File

@ -1011,7 +1011,7 @@ const ReadThread = struct {
} }
// Wait for data. // Wait for data.
_ = std.os.poll(&pollfds, 0) catch |err| { _ = std.os.poll(&pollfds, -1) catch |err| {
log.warn("poll failed on read thread, exiting early err={}", .{err}); log.warn("poll failed on read thread, exiting early err={}", .{err});
return; return;
}; };