Closed
Description
The following TODO arouses my interest. Why we need to deep copy args and env to heap? The parent can not access or even modify the copy of them in the child once uv_spawn
succeed, in case it failed, libuv does not(and has no reason) to touch them.
Code to prepare uv_process_options_t before call uv_spawn() in the implementation of child_process.spawn
:
Lines 178 to 204 in b3f5a41
Code to prepare uv_process_options_t before call uv_spawn() in the implementation of child_process.spawnSync
:
Lines 755 to 765 in b3f5a41
Metadata
Metadata
Assignees
Labels
No labels