Commit 0a312ac
fix: preserve collected data when controller script is interrupted by signal (#671)
When SIGINT is sent during flamegraph (or telemetry) collection, the
controller script handles it gracefully and outputs collected data before
exiting. However, the SSH process carrying the output gets interrupted by
perfspect's signal handler, returning exit code 255. Previously this
caused all collected data to be discarded.
Now, when the controller exit code is non-zero but stdout contains valid
controller output, the data is parsed and returned instead of being
treated as a fatal error.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 12abe5a commit 0a312ac
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
| |||
0 commit comments