Commit 6b998b2
committed
Never clobber a harvested lld argv with an empty read of a dying pid
Run 28848516536 lost the capture: the harvest loop re-copies
/proc/<pid>/cmdline every iteration, and the final copy raced the
process's exit, truncating the file to zero bytes and skipping all
replay diagnostics. Copy to a temp file and only move it into place
when non-empty.1 parent abc4fec commit 6b998b2
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
127 | 132 | | |
128 | 133 | | |
129 | 134 | | |
| |||
0 commit comments