Commit 0504d1b
committed
fix(builder[here]): Warn when respawn-pane will kill running processes
Before calling respawn-pane -k, check pgrep -P <pane_pid> for child
processes. If the shell has running children (background jobs,
foreground programs), log a WARNING so users know their processes
will be terminated. Gracefully handles missing pgrep.1 parent f5f490a commit 0504d1b
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
719 | 720 | | |
720 | 721 | | |
721 | 722 | | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
722 | 743 | | |
723 | 744 | | |
724 | 745 | | |
| |||
0 commit comments