mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-04 12:27:49 +00:00
termio/exec: poll() needs a negative timeout to block 🤡
This commit is contained in:
@@ -1011,7 +1011,7 @@ const ReadThread = struct {
|
||||
}
|
||||
|
||||
// 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});
|
||||
return;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user