summaryrefslogtreecommitdiff
path: root/sys/kern/kern_proc.c
AgeCommit message (Collapse)Author
15 hourskernel: Increment g_nthreads in proc_init() onlyIan Moffett
It seems somewhat dangerous to have to manually increment the number of threads every time we make a process. This change makes every call to proc_init() increment the number of threads. The value is decremented once the process exits. Signed-off-by: Ian Moffett <ian@osmora.org>
15 hourskernel: proc: Remove extra newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
16 hourskernel: proc: Add proc_init() routineIan Moffett
This commit moves a lot of initialization logic within spawn() into the proc_init() function. The logic of spawning a process from an executable should not have mixed with the logic of initializing a process. Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: descrip: Add 'td' parameter to fd routinesIan Moffett
Update the signature of 'fd_get()', 'fd_alloc()' and 'fd_dup()' to include a pointer to the process to target. This improves the flexibility of the file descriptor API. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-05kernel/amd64: Add support for coredumpsIan Moffett
To make debugging userland program crashes easier, this commit introduces coredumps that store the last known process state into a temporary /tmp/core.X file (where X is the PID of the faulting process). Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-03kernel: proc: Add getpid() and getppid()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>