mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
fix(node:child_process): fix crash with ipc (#8319)
* make sure `onLongTimeout` doesn't happen * add `onLongTimeout` handler
This commit is contained in:
@@ -3076,6 +3076,7 @@ pub const VirtualMachine = struct {
|
||||
.ipc = undefined,
|
||||
};
|
||||
const socket = IPC.Socket.fromFd(context, fd, IPCInstance, instance, null) orelse @panic("Unable to start IPC");
|
||||
socket.setTimeout(0);
|
||||
instance.ipc = .{ .socket = socket };
|
||||
|
||||
const ptr = socket.ext(*IPCInstance);
|
||||
|
||||
Reference in New Issue
Block a user