mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 21:40:29 +00:00
Merge pull request #1509 from der-teufel-programming/fix-os-O
Update usage of std.os.O
This commit is contained in:
@@ -1470,7 +1470,11 @@ const ReadThread = struct {
|
||||
// so that we can try to read from the fd in a tight loop and only
|
||||
// check the quit fd occasionally.
|
||||
if (std.os.fcntl(fd, std.os.F.GETFL, 0)) |flags| {
|
||||
_ = std.os.fcntl(fd, std.os.F.SETFL, flags | std.os.O.NONBLOCK) catch |err| {
|
||||
_ = std.os.fcntl(
|
||||
fd,
|
||||
std.os.F.SETFL,
|
||||
flags | @as(u32, @bitCast(std.os.O{ .NONBLOCK = true })),
|
||||
) catch |err| {
|
||||
log.warn("read thread failed to set flags err={}", .{err});
|
||||
log.warn("this isn't a fatal error, but may cause performance issues", .{});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user