Commit 23eaaf6
committed
fix(shutdown): stop Ctrl+C output racing the shell prompt (#62)
The JSS child shares the CLI's process group, so a terminal Ctrl+C
delivers SIGINT to both. The child already prints "Shutting down..."
and exits on its own; the parent was also printing "Shutting down
gracefully..." and then racing the farewell against the returning
prompt.
Drop the parent's redundant line and let handle.stop() await the
child's exit before printing the farewell, so output stays ordered.
Keeps both in the same process group (no detached orphan risk).
Closes #621 parent a27ae7d commit 23eaaf6
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
523 | 527 | | |
524 | | - | |
525 | 528 | | |
526 | | - | |
527 | | - | |
| 529 | + | |
| 530 | + | |
528 | 531 | | |
529 | 532 | | |
530 | 533 | | |
| |||
0 commit comments