Commit 47f3735
cluster: send suicide message on disconnect
This commit causes Worker.prototype.disconnect() to send a
suicide message to the cluster master. The function is also
restructured to eliminate redundant code.
Fixes: #3238
PR-URL: #3720
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 9ef81ff commit 47f3735Copy full SHA for 47f3735
File tree
Expand file treeCollapse file tree
2 files changed
+31
-12
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+31
-12
lines changedOpen diff view settings
Collapse file
+10-12Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
654 | 654 | |
655 | 655 | |
656 | 656 | |
657 | | - |
| 657 | + |
658 | 658 | |
659 | | - |
660 | | - |
661 | | - |
| 659 | + |
| 660 | + |
| 661 | + |
| 662 | + |
662 | 663 | |
663 | 664 | |
664 | 665 | |
665 | 666 | |
666 | | - |
667 | | - |
| 667 | + |
| 668 | + |
668 | 669 | |
669 | | - |
670 | | - |
671 | | - |
672 | | - |
673 | | - |
674 | | - |
| 670 | + |
| 671 | + |
675 | 672 | |
676 | 673 | |
| 674 | + |
677 | 675 | |
678 | 676 | |
679 | 677 | |
|
Collapse file
test/parallel/test-regress-GH-3238.js
Copy file name to clipboard+21Lines changed: 21 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 | + |
0 commit comments