Commit 1952844
committed
child_process: support options in send()
This commit adds an options object to process.send(). The same
object is propagated to process._send(), the _handleQueue, and the
send() and postSend() functions of the handle converter.
Fixes: #4271
PR-URL: #5283
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>1 parent 18abb3c commit 1952844Copy full SHA for 1952844
File tree
Expand file treeCollapse file tree
4 files changed
+66
-17
lines changedOpen diff view settings
Filter options
- doc/api
- lib/internal
- test/parallel
Expand file treeCollapse file tree
4 files changed
+66
-17
lines changedOpen diff view settings
Collapse file
doc/api/child_process.markdown
Copy file name to clipboardExpand all lines: doc/api/child_process.markdown+5-1Lines changed: 5 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
750 | 750 | |
751 | 751 | |
752 | 752 | |
753 | | - |
| 753 | + |
754 | 754 | |
755 | 755 | |
756 | 756 | |
| 757 | + |
757 | 758 | |
758 | 759 | |
759 | 760 | |
| ||
801 | 802 | |
802 | 803 | |
803 | 804 | |
| 805 | + |
| 806 | + |
| 807 | + |
804 | 808 | |
805 | 809 | |
806 | 810 | |
|
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
825 | 825 | |
826 | 826 | |
827 | 827 | |
828 | | - |
| 828 | + |
829 | 829 | |
830 | 830 | |
831 | 831 | |
| 832 | + |
832 | 833 | |
833 | 834 | |
834 | 835 | |
|
Collapse file
lib/internal/child_process.js
Copy file name to clipboardExpand all lines: lib/internal/child_process.js+34-15Lines changed: 34 additions & 15 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
35 | 35 | |
36 | 36 | |
37 | 37 | |
38 | | - |
| 38 | + |
39 | 39 | |
40 | 40 | |
41 | 41 | |
| ||
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | | - |
| 50 | + |
51 | 51 | |
52 | 52 | |
53 | 53 | |
| ||
60 | 60 | |
61 | 61 | |
62 | 62 | |
63 | | - |
| 63 | + |
64 | 64 | |
65 | 65 | |
66 | 66 | |
| ||
90 | 90 | |
91 | 91 | |
92 | 92 | |
93 | | - |
| 93 | + |
94 | 94 | |
95 | 95 | |
96 | 96 | |
| ||
117 | 117 | |
118 | 118 | |
119 | 119 | |
120 | | - |
| 120 | + |
121 | 121 | |
122 | 122 | |
123 | 123 | |
| ||
129 | 129 | |
130 | 130 | |
131 | 131 | |
132 | | - |
| 132 | + |
133 | 133 | |
134 | 134 | |
135 | 135 | |
| ||
466 | 466 | |
467 | 467 | |
468 | 468 | |
469 | | - |
| 469 | + |
470 | 470 | |
471 | 471 | |
472 | 472 | |
| ||
498 | 498 | |
499 | 499 | |
500 | 500 | |
501 | | - |
| 501 | + |
502 | 502 | |
503 | 503 | |
504 | 504 | |
| 505 | + |
| 506 | + |
| 507 | + |
| 508 | + |
| 509 | + |
| 510 | + |
| 511 | + |
505 | 512 | |
| 513 | + |
| 514 | + |
| 515 | + |
506 | 516 | |
507 | | - |
| 517 | + |
508 | 518 | |
509 | 519 | |
510 | 520 | |
| ||
515 | 525 | |
516 | 526 | |
517 | 527 | |
518 | | - |
| 528 | + |
519 | 529 | |
520 | 530 | |
521 | 531 | |
522 | 532 | |
523 | 533 | |
| 534 | + |
| 535 | + |
| 536 | + |
| 537 | + |
| 538 | + |
524 | 539 | |
525 | 540 | |
526 | 541 | |
| ||
549 | 564 | |
550 | 565 | |
551 | 566 | |
| 567 | + |
552 | 568 | |
553 | 569 | |
554 | 570 | |
| ||
557 | 573 | |
558 | 574 | |
559 | 575 | |
560 | | - |
561 | | - |
| 576 | + |
| 577 | + |
| 578 | + |
| 579 | + |
562 | 580 | |
563 | 581 | |
564 | 582 | |
| ||
575 | 593 | |
576 | 594 | |
577 | 595 | |
| 596 | + |
578 | 597 | |
579 | 598 | |
580 | 599 | |
| ||
593 | 612 | |
594 | 613 | |
595 | 614 | |
596 | | - |
| 615 | + |
597 | 616 | |
598 | 617 | |
599 | 618 | |
| ||
605 | 624 | |
606 | 625 | |
607 | 626 | |
608 | | - |
| 627 | + |
609 | 628 | |
610 | | - |
| 629 | + |
611 | 630 | |
612 | 631 | |
613 | 632 | |
|
Collapse file
test/parallel/test-child-process-send-type-error.js
Copy file name to clipboard+25Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
0 commit comments