diff options
Diffstat (limited to 'src/bun.js/base.zig')
-rw-r--r-- | src/bun.js/base.zig | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/bun.js/base.zig b/src/bun.js/base.zig index a6df36c4f..8f65cf42e 100644 --- a/src/bun.js/base.zig +++ b/src/bun.js/base.zig @@ -2310,13 +2310,15 @@ pub const FilePoll = struct { return JSC.Maybe(void).success; }; - if (this.flags.contains(.needs_rearm)) { - log("unregister: {s} ({d}) skipped due to needs_rearm", .{ @tagName(flag), fd }); - this.flags.remove(.poll_process); - this.flags.remove(.poll_readable); - this.flags.remove(.poll_process); - this.flags.remove(.poll_machport); - return JSC.Maybe(void).success; + if (comptime !Environment.isLinux) { + if (this.flags.contains(.needs_rearm)) { + log("unregister: {s} ({d}) skipped due to needs_rearm", .{ @tagName(flag), fd }); + this.flags.remove(.poll_process); + this.flags.remove(.poll_readable); + this.flags.remove(.poll_process); + this.flags.remove(.poll_machport); + return JSC.Maybe(void).success; + } } log("unregister: {s} ({d})", .{ @tagName(flag), fd }); |