diff options
author | 2023-10-16 20:01:24 -0700 | |
---|---|---|
committer | 2023-10-16 20:01:24 -0700 | |
commit | a3958190e8f106adca7fbf4ba2605056cb22aced (patch) | |
tree | 475057061d3470f1dc4d06b901d6bad0b898cb09 /src/js/node/child_process.js | |
parent | 6504bfef74b552aa834324adfe102c9ba0193039 (diff) | |
download | bun-a3958190e8f106adca7fbf4ba2605056cb22aced.tar.gz bun-a3958190e8f106adca7fbf4ba2605056cb22aced.tar.zst bun-a3958190e8f106adca7fbf4ba2605056cb22aced.zip |
fix(runtime): improve IPC reliability + organization pass on that code (#6475)
* dfghj
* Handle messages that did not finish
* tidy
* ok
* a
* Merge remote-tracking branch 'origin/main' into dave/ipc-fixes
* test failures
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Diffstat (limited to 'src/js/node/child_process.js')
-rw-r--r-- | src/js/node/child_process.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/node/child_process.js b/src/js/node/child_process.js index c46a50bc0..adc479bba 100644 --- a/src/js/node/child_process.js +++ b/src/js/node/child_process.js @@ -1174,6 +1174,7 @@ class ChildProcess extends EventEmitter { env: env || process.env, detached: typeof detachedOption !== "undefined" ? !!detachedOption : false, onExit: (handle, exitCode, signalCode, err) => { + $debug("ChildProcess: onExit", exitCode, signalCode, err, this.pid); this.#handle = handle; this.pid = this.#handle.pid; @@ -1189,6 +1190,8 @@ class ChildProcess extends EventEmitter { }); this.pid = this.#handle.pid; + $debug("ChildProcess: spawn", this.pid, spawnargs); + onSpawnNT(this); if (ipc) { |