Commit f895fcc
committed
fix(process): wake reparented child wait owner
Publish the completed natural-parent notification before taking a fresh parent snapshot under the ptrace relation lock. Wake both the original notification owner and a different completion-time parent so a concurrent zombie reparent cannot strand wait4 after observing the transient Pending state.
Signed-off-by: longjin <longjin@dragonos.org>1 parent f117481 commit f895fcc
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
276 | 285 | | |
277 | 286 | | |
278 | 287 | | |
| |||
288 | 297 | | |
289 | 298 | | |
290 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
291 | 305 | | |
292 | 306 | | |
293 | 307 | | |
| |||
0 commit comments