Skip to content

[kernel] Fix not reparenting children to init task on exit bug#2639

Merged
ghaerr merged 1 commit intomasterfrom
reparent
Apr 18, 2026
Merged

[kernel] Fix not reparenting children to init task on exit bug#2639
ghaerr merged 1 commit intomasterfrom
reparent

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Apr 18, 2026

Fixes the somewhat major bug of child processes being reparented to the wrong parent (i.e. not the init task) on exit. This was introduced in PR #2531 and found by @Mellvik, discussed in 6d00d17#commitcomment-182274340.

While not always problematic, the PPID (parent PID) of the child process will appear incorrectly in ps -l, and execution by the child of a wait system call (or getppid) will not work properly.

@ghaerr ghaerr merged commit 5b125a2 into master Apr 18, 2026
1 check passed
@ghaerr ghaerr deleted the reparent branch April 18, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant