@@ -1055,6 +1055,13 @@ When the child process is a Node.js instance (e.g. spawned using
1055
1055
[ ` child_process.fork() ` ] [ ] ), the ` process.disconnect() ` method can be invoked
1056
1056
within the child process to close the IPC channel as well.
1057
1057
1058
+ ### ` subprocess.exitCode `
1059
+
1060
+ * {integer}
1061
+
1062
+ The ` subprocess.exitcode ` property indicates the exit code of the child process.
1063
+ If the child process is still running, the field will be null.
1064
+
1058
1065
### ` subprocess.kill([signal]) `
1059
1066
<!-- YAML
1060
1067
added: v0.1.90
@@ -1348,6 +1355,34 @@ It is also recommended that any `'message'` handlers in the child process
1348
1355
verify that ` socket ` exists, as the connection may have been closed during the
1349
1356
time it takes to send the connection to the child.
1350
1357
1358
+ ### ` subprocess.signalCode `
1359
+
1360
+ * {integer}
1361
+
1362
+ The ` subprocess.signalCode ` property indicates the signal number received by
1363
+ the child process if any, else null.
1364
+
1365
+ ### ` subprocess.spawnargs `
1366
+
1367
+ * {Array}
1368
+
1369
+ The ` subprocess.spawnargs ` property represents the full list of command line
1370
+ arguments the child process was launched with.
1371
+
1372
+ ### ` subprocess.spawnfile `
1373
+
1374
+ * {string}
1375
+
1376
+ The ` subprocess.spawnfile ` property indicates the executable file name of
1377
+ the child process that is launched.
1378
+
1379
+ For [ ` child_process.fork() ` ] [ ] , its value will be equal to
1380
+ [ ` process.execPath ` ] [ ] .
1381
+ For [ ` child_process.spawn() ` ] [ ] , its value will be the name of
1382
+ the executable file.
1383
+ For [ ` child_process.exec() ` ] [ ] , its value will be the name of the shell
1384
+ in which the child process is launched.
1385
+
1351
1386
### ` subprocess.stderr `
1352
1387
<!-- YAML
1353
1388
added: v0.1.90
0 commit comments