Commit dc2a9d2
authored
fix(shutdown): stop Ctrl+C output racing the shell prompt (#64)
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 CLI was also printing "Shutting down
gracefully..." and then racing the farewell against the returning
shell prompt.
Drop the parent's redundant line and let handle.stop() await the
child's exit before the farewell, so output stays ordered. Same
process group, so closing the terminal still tears the server down
(no detached orphan).
Closes #621 parent 5b4748c commit dc2a9d2
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