Commit 95515e9
Fix zombie ctags processes by adding waitFor() after destroyForcibly()
When ctags processing times out or is terminated, destroyForcibly() sends
SIGKILL but the parent never calls waitFor() to reap the child process.
This causes zombie processes to accumulate over long indexing runs.
Extract destroyProcess() helper that calls destroyForcibly() followed by
waitFor(10, SECONDS) to properly reap terminated ctags processes.
Fixes #49201 parent ab2190c commit 95515e9
File tree
1 file changed
+15
-3
lines changed- opengrok-indexer/src/main/java/org/opengrok/indexer/analysis
1 file changed
+15
-3
lines changedLines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
146 | 158 | | |
147 | 159 | | |
148 | 160 | | |
| |||
603 | 615 | | |
604 | 616 | | |
605 | 617 | | |
606 | | - | |
| 618 | + | |
607 | 619 | | |
608 | 620 | | |
609 | | - | |
| 621 | + | |
610 | 622 | | |
611 | 623 | | |
612 | 624 | | |
| |||
0 commit comments