mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03: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