Commit ccf1b02
committed
feat(child_process): add exec and execFile functions
Implements exec() and execFile() for the child_process module, matching
the Node.js API. Key features:
- Callback-based API with (error, stdout, stderr) signature
- Shell execution for exec(), direct execution for execFile()
- Support for options: cwd, env, timeout, maxBuffer, killSignal, shell
- Preserves partial output data on timeout
- Uses Persistent<Function> pattern for async callback safety1 parent b6a70bc commit ccf1b02
File tree
5 files changed
+1477
-17
lines changed- modules/llrt_child_process
- src
- tests/unit
- types
5 files changed
+1477
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
0 commit comments