aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-09-12 21:27:30 -0700
committerGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-09-12 21:27:30 -0700
commitd8b5176cc0251bd12d45850377b3e7d297181678 (patch)
tree384cac65d779f11e61f7690ddd8046e43dccf900
parentec251863d149db3b2bf07d106c5aa7a2074e5301 (diff)
downloadbun-dylan/cli-fixes.tar.gz
bun-dylan/cli-fixes.tar.zst
bun-dylan/cli-fixes.zip
-rw-r--r--src/bun.js/base.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/base.zig b/src/bun.js/base.zig
index 087010dbf..bad73ea48 100644
--- a/src/bun.js/base.zig
+++ b/src/bun.js/base.zig
@@ -2168,10 +2168,10 @@ pub const FilePoll = struct {
var event = linux.epoll_event{ .events = flags, .data = .{ .u64 = @intFromPtr(Pollable.init(this).ptr()) } };
- var op = if (this.isRegistered() or this.flags.contains(.needs_rearm)) linux.EPOLL.CTL_MOD else linux.EPOLL.CTL_ADD;
+ var op: u32 = if (this.isRegistered() or this.flags.contains(.needs_rearm)) linux.EPOLL.CTL_MOD else linux.EPOLL.CTL_ADD;
if (op == linux.EPOLL.CTL_ADD and this.flags.contains(.one_shot)) {
- var gpe = JSC.VirtualMachine.get().registered_one_shot_epoll_fds.getOrPut(fd);
+ var gpe = JSC.VirtualMachine.get().registered_one_shot_epoll_fds.getOrPut(fd) catch unreachable;
if (gpe.found_existing) {
op = linux.EPOLL.CTL_MOD;
}