mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +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.
|
// 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;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user