Commit 384ff92
committed
fix: write exit code after process exits in terminate command
The EXIT trap in the process writes $? (which is 0 for SIGTERM) and would
overwrite our exit code if we wrote it immediately. Now we wait for the
process to exit before writing 143 (SIGTERM) or 137 (SIGKILL).1 parent df15f39 commit 384ff92
File tree
2 files changed
+7
-6
lines changed- src/node/runtime
2 files changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 138 | + | |
| 139 | + | |
144 | 140 | | |
145 | 141 | | |
146 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
0 commit comments