Commit d681ceb
committed
🤖 fix: convert signal-terminated processes to non-zero exit codes
When a process is killed by signal (SIGTERM, SIGKILL, etc.), Node's close
event provides code=null and signal name. Previously we defaulted null to 0,
making killed processes appear as successful exits.
Now converts signals to Unix-conventional exit codes (128 + signal_number):
- SIGKILL (9) → 137
- SIGTERM (15) → 143
- SIGINT (2) → 130
This allows bash_background_read/list to distinguish clean exits from
forced terminations (via terminate() or external kill/OOM).1 parent e252065 commit d681ceb
1 file changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
183 | | - | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
184 | 201 | | |
185 | 202 | | |
186 | 203 | | |
| |||
0 commit comments