GeezerVison is showing github.com — doc: clarify subprocess.stdout/in/err/io properties · nodejs/node@c1ea23c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/child_process.md +12Lines changed: 12 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1498,6 +1498,9 @@ then this will be `null`. |
1498 | 1498 | `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will |
1499 | 1499 | refer to the same value. |
1500 | 1500 |
|
| 1501 | +The `subprocess.stderr` property can be `null` if the child process could |
| 1502 | +not be successfully spawned. |
| 1503 | + |
1501 | 1504 | ### `subprocess.stdin` |
1502 | 1505 | <!-- YAML |
1503 | 1506 | added: v0.1.90 |
@@ -1516,6 +1519,9 @@ then this will be `null`. |
1516 | 1519 | `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will |
1517 | 1520 | refer to the same value. |
1518 | 1521 |
|
| 1522 | +The `subprocess.stdin` property can be `undefined` if the child process could |
| 1523 | +not be successfully spawned. |
| 1524 | + |
1519 | 1525 | ### `subprocess.stdio` |
1520 | 1526 | <!-- YAML |
1521 | 1527 | added: v0.7.10 |
@@ -1556,6 +1562,9 @@ assert.strictEqual(subprocess.stdio[2], null); |
1556 | 1562 | assert.strictEqual(subprocess.stdio[2], subprocess.stderr); |
1557 | 1563 | ``` |
1558 | 1564 |
|
| 1565 | +The `subprocess.stdio` property can be `undefined` if the child process could |
| 1566 | +not be successfully spawned. |
| 1567 | + |
1559 | 1568 | ### `subprocess.stdout` |
1560 | 1569 | <!-- YAML |
1561 | 1570 | added: v0.1.90 |
@@ -1581,6 +1590,9 @@ subprocess.stdout.on('data', (data) => { |
1581 | 1590 | }); |
1582 | 1591 | ``` |
1583 | 1592 |
|
| 1593 | +The `subprocess.stdout` property can be `null` if the child process could |
| 1594 | +not be successfully spawned. |
| 1595 | + |
1584 | 1596 | ### `subprocess.unref()` |
1585 | 1597 | <!-- YAML |
1586 | 1598 | added: v0.7.10 |
|