diff options
author | 2021-12-30 22:09:51 -0800 | |
---|---|---|
committer | 2021-12-30 22:09:51 -0800 | |
commit | ae5e2f5af20bed319403c262f5f86620e7e27b5a (patch) | |
tree | 350928b4347340d73ffe8f95da742984778ec459 /src/io/io_linux.zig | |
parent | a8b7b2a6b9ad3e08047474905d9e333c0eeac072 (diff) | |
download | bun-ae5e2f5af20bed319403c262f5f86620e7e27b5a.tar.gz bun-ae5e2f5af20bed319403c262f5f86620e7e27b5a.tar.zst bun-ae5e2f5af20bed319403c262f5f86620e7e27b5a.zip |
Update io_linux.zig
Diffstat (limited to 'src/io/io_linux.zig')
-rw-r--r-- | src/io/io_linux.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/io_linux.zig b/src/io/io_linux.zig index dd1c6d070..7abb01cc3 100644 --- a/src/io/io_linux.zig +++ b/src/io/io_linux.zig @@ -134,7 +134,7 @@ pub fn run_for_ns(self: *IO, nanoseconds: u63) !void { break :blk self.ring.get_sqe() catch unreachable; }; // Submit an absolute timeout that will be canceled if any other SQE completes first: - linux.io_uring_prep_timeout(timeout_sqe, &timeout_ts, linux.IORING_TIMEOUT_ABS); + linux.io_uring_prep_timeout(timeout_sqe, &timeout_ts, 1, linux.IORING_TIMEOUT_ABS); timeout_sqe.user_data = 0; timeouts += 1; // The amount of time this call will block is bounded by the timeout we just submitted: |