summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
AgeCommit message (Collapse)Author
37 hourskernel: exit: Only kill leaf if not exitingIan Moffett
During an exit(), the parent needs to kill all of the child processes that depend on it. However, there might be an occurrence where one or more is already exiting and trying to kill such processes would be problematic and may result in issues like double frees. This commit ensures that the exiting parent only kills child processes that aren't already exiting themselves. Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: Only free thread data on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: exit: Don't use thread data on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-09kernel: exit: Ensure PROC_WAITED is unset on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-09kernel: spawn: Improve wait sleep handlingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-08kernel: exit: Handle stack VA/PA in proc_reap()Ian Moffett
User stacks are identity mapped and kernel stacks are not. Handle this properly or else suffer the consequences. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-08kernel: exit: Wake up parent *only* if asleepIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-31kernel: spawn: Add support for SPAWN_WAIT flagIan Moffett
Add SPAWN_WAIT flag that causes spawn() to wait until the child process completes. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-31kernel: proc: Add proc_reap() for zombies, etcIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-28kernel: proc: Store kernel thread flag in `proc'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-28kernel: exit: Ensure curtd is NULL if killedIan Moffett
If the current process is killed, make sure that we set the pointer to the currently running process to NULL. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-28kernel: exit: Handle killings of kernel threadsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-17kernel: exit: Detach proc on exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-16kernel: exit: Remove extra newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-16kernel: proc: Handle parent exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-21kernel: Update kernel log styleIan Moffett
Kernel logs must now all be lowercase for consistency. A new style called Peripheral Description Notation (PDN) has also been introduced to describe devices. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-16project: Update copyright date to 2025Ian Moffett
Was supposed to happen on Jan 1, sorry! Happy late new year! Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-18kernel: exit: Drop loadmap entries with bad rangeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-17kernel: exit: Unload thread in exit1()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-07-04kernel/amd64: Add syscall support + SYS_exitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-06-30kernel: sched: Add exit1()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>