-
Notifications
You must be signed in to change notification settings - Fork 4.1k
more child-process #18688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
more child-process #18688
Changes from all commits
Commits
Show all changes
173 commits
Select commit
Hold shift + click to select a range
be1fdbe
test-child-process-reject-null-bytes
pfgithub f1dc926
test-child-process-emfile
pfgithub d828f25
match node logic more closely
pfgithub 887ee53
support both emfile and enfile
pfgithub 2d0829b
test-child-process-spawnsync-kill-signal
pfgithub 57376f2
test-child-process-spawnsync-shell.js
pfgithub 58dbcb0
test-child-process-windows-hide
pfgithub 4da8ce1
test-child-process-detached
pfgithub 511182f
test-child-process-prototype-tampering
pfgithub 70cb404
abort signal stuff?
pfgithub 1fc70f4
use recvmsg() on ipc sockets
pfgithub 1932f61
on_fd
pfgithub 185d417
unify doSend & fix the error is supposed to be on nextTick
pfgithub 85045a6
write fd fn
pfgithub a1356ec
Merge branch 'main' into pfg/child-process
pfgithub 0a03f64
unify serializeAndSend{,Internal}
pfgithub 8ec6bca
WIPPIW
pfgithub f64058a
PIWIPIWIP
pfgithub 1adf00f
no anytype
pfgithub 25cad68
WIPPWI
pfgithub b23c79c
add ipc deinit and use it
pfgithub 5152f3a
maybe prepared for sending an ack now?
pfgithub 922ede7
fix musl build
pfgithub 7ea23d0
note
pfgithub 9b49af4
handle empty to_send case
pfgithub 7769fda
WIPWPIWIPW
pfgithub d747f41
WIWIPPIWWWIPWWIPPI
pfgithub b1fa295
<wip|piw|wip|piw>
pfgithub 0f2806f
merge internal/deternal codepaths
pfgithub e4035db
remove the (hopefully) unreachable panic
pfgithub dc3d16c
revert net change
pfgithub 4c06efc
use fastGet over get
pfgithub 7a3bbb4
(cont.d)
pfgithub de77f13
begin ipc.ts
pfgithub 09e9082
wip
pfgithub 2c34f0c
fixes 1
pfgithub 4c10033
fixes 2
pfgithub 1b6cb70
get test-child-process-fork passing again
pfgithub 8823893
pass node-http2.ts again
pfgithub d3d57a9
pass serve.test.ts again
pfgithub d86f8ec
improve bundle-functions error display
pfgithub 22f6f2e
call js from zig now?
pfgithub 4a29147
remove std log info
pfgithub 87d6cfe
ban std.log.info
pfgithub 8f3e837
(ban-words) std.debug.print -> limit 0
pfgithub 04b3127
(ban-words) std.mem.indexOfAny(u8 -> limit 0
pfgithub 1ca57ae
notes
pfgithub 997143e
Merge branch 'main' into pfg/child-process
pfgithub 0f047ee
fix after merge
pfgithub 51f3496
pass test-child-process-send-after-close again
pfgithub 4c486a1
simplify? logic
pfgithub 9397a41
fix where makeAbortError is called so it doesn't call it at the wrong…
pfgithub 1b74733
fix child_process_ipc.test.js
pfgithub fb3fabb
wip
pfgithub bfd648e
use single quote rather than double quote
pfgithub 7219238
WIPWIPWIP
pfgithub c3c601d
remove unneeded headers
pfgithub 2bdaccb
fix creating the ipc socket for the child
pfgithub 27a1d0d
it sends a server. doesn't work yet though
pfgithub 0df9b24
send the right message
pfgithub bbb67f1
notes
pfgithub 285e701
eintr
pfgithub a648eaf
it was listening with port = fd rather than trying to listen on the fd.
pfgithub ccd9314
child listens on fd maybe?
pfgithub 549e720
Merge branch 'main' into pfg/child-process
pfgithub 4a02c57
double-connect repro
pfgithub 4957d13
notes
pfgithub 2fa6fe5
add the remaining send fd related tests
pfgithub accd9ab
fix a queue problem & return backoff indication
pfgithub 6f9cb67
need to always add a handle to the queue because each may have its ow…
pfgithub 3d983de
`bun run prettier:extra`
pfgithub aa08852
protect the callback!
pfgithub 77e0ac6
remove unused comment
pfgithub 2321d15
wip serialize net.Socket
pfgithub d29a9d6
ipc.ts fix
pfgithub c38f9d6
move more into SendQueue to be shared across platform
pfgithub e96c6e9
move internal_msg_queue, incoming, incoming_fd to SendQueue
pfgithub 62f8eff
wip windows
pfgithub c1f7ff5
it builds on windows
pfgithub 4e4f699
Merge branch 'main' into pfg/child-process
pfgithub 66b8313
fix build after merge
pfgithub 3646deb
remove unneeded throw
pfgithub 0428371
fix missing break in switch
pfgithub ffba9e9
Merge branch 'main' into pfg/child-process
pfgithub f1eb409
Merge branch 'main' into pfg/child-process
pfgithub 51fde5f
disable sending handles for now
pfgithub a87a4fb
remove send handle related tests
pfgithub c223b21
maybe windows
pfgithub 8cfbcef
un-modify launch.json
pfgithub fef56c7
getAckPacket/getNackPacket for advanced serialization
pfgithub 66e8cd2
eliminate panics
pfgithub 47c344a
disable double-connect
pfgithub 21450ea
fix build on windows
pfgithub 1d3834f
fix windows duplicate of has_written_version
pfgithub 2a955d6
debug logging
pfgithub 1d59912
windows was missing .flush()
pfgithub b62fa59
windows systemerrno uv errors?
pfgithub 34a6a39
fix the log
pfgithub 28d7c80
move the windows_c
pfgithub 6de6e6b
forgot the helpers.cpp change
pfgithub 90a34c4
complete array
pfgithub d666ed4
enhanced send cb test
pfgithub 794fee5
add uv.h include
pfgithub 184b391
Merge branch 'main' into pfg/child-process
pfgithub 499124a
fix match
pfgithub c0df4eb
fix [0m in the test
pfgithub 38f8834
test-child-process-stdin
pfgithub b142ef6
set NO_COLOR for child_process_send_cb_test
pfgithub f716d57
pass lint
pfgithub b25c419
Merge branch 'main' into pfg/child-process
pfgithub d5e4e40
allow fd parameter in listen for listen-fd-ebadf, but not implemented…
pfgithub 3cb622c
Merge branch 'main' into pfg/child-process
pfgithub bcd22fd
fix build after merge
pfgithub a05cccf
update ban-words after merge
pfgithub 5491f26
Merge branch 'main' into pfg/child-process
pfgithub 9e1bb89
update ban-words
pfgithub b5ee576
disconnectIPC on subprocess finalize
pfgithub e761e8b
WIP
pfgithub 48d969d
Merge branch 'main' into pfg/child-process
pfgithub a45a7b1
posix keep ipc instance alive
pfgithub 8b8520d
use debug allocator for ipc
pfgithub 87dc7b7
add watch-windows script
pfgithub 6968842
.
pfgithub dc759ac
close next tick -> sendqueue
pfgithub a96e6e4
eliminate the SocketType
pfgithub e7110af
ipc: move out of a generic fn
pfgithub 30619fa
WIP WIP WIP WIP windows
pfgithub 12245af
it builds on windows
pfgithub f8707c9
add debug logging to ipc
pfgithub 340a041
windows fix (libuv never returns partial writes. succesful writes ret…
pfgithub 2adef9a
fixes
pfgithub f005ab3
fix process.connected & error in the not connected case
pfgithub 7495a51
no way
pfgithub 251f926
disconnect on both sides & disable keep-alive on close & windows tryW…
pfgithub fda0f13
make sure windows write won't uaf & remove the tryWrite
pfgithub bb84863
send on the next tick rather than immediately. this fixes test-cluste…
pfgithub 23cb93c
revert nextTick
pfgithub 24ceda2
missed one
pfgithub bf7e66c
Merge branch 'main' into pfg/child-process
pfgithub ac1bf86
don't unref before close
pfgithub 573c08e
update child_process_ipc_large_disconnect
pfgithub 2ea54fe
windows: close after writes complete
pfgithub 9f931ce
windows
pfgithub acda568
one last windows fix?
pfgithub 8abee66
two last windows fix
pfgithub 400c39b
if a write fails, close immediately
pfgithub 38bd0d2
posix fix
pfgithub 25ea7ed
fix
pfgithub 064110f
Merge branch 'main' into pfg/child-process
pfgithub b234a08
Merge branch 'main' into pfg/child-process
pfgithub 5be1a32
formatting
pfgithub 26c2169
remove us_socket_context_listen_fd for now
pfgithub b036a99
make globalThis not nullable
pfgithub fe9ee1d
use bin.String.empty for function name
pfgithub 3c9a1dc
remove todo comment
pfgithub b1fe533
CallbackList structure
pfgithub a71e807
move is_ipc to flags
pfgithub ef0e5a3
fix windows build
pfgithub ab10d0d
windows fix 2
pfgithub d44d019
Merge branch 'main' into pfg/child-process
pfgithub 5d7be00
check us_socket_is_closed in on_fd callback and do the `s = `
pfgithub cfbb19b
comment us_socket_ipc_write_fd
pfgithub 019b500
update ban-words
pfgithub 8a900c9
Merge branch 'main' into pfg/child-process
pfgithub e146535
revert change in bun_shim_impl
pfgithub 58cb872
fix double-wrapped abort error
pfgithub aed8c65
more accurate fd handling
pfgithub eb7f175
listen fd changes
pfgithub b1ca4b0
fd error
pfgithub 6e387f1
.
pfgithub 299f4be
fix
pfgithub 32dcfdc
fix lint
pfgithub b09dfe6
allow one std.log
pfgithub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.