From c0f5c0ef41ec55ca00f933fef3bcd1c35a181dad Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 8 Aug 2023 09:14:08 -0700 Subject: [PATCH] =?UTF-8?q?termio/exec:=20poll()=20needs=20a=20negative=20?= =?UTF-8?q?timeout=20to=20block=20=F0=9F=A4=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/termio/Exec.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/termio/Exec.zig b/src/termio/Exec.zig index eed0c5e93..5f6c70aac 100644 --- a/src/termio/Exec.zig +++ b/src/termio/Exec.zig @@ -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; };