]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix(execve): reset signal handlers and clear pending signals on execve
authorTulio A M Mendes <[email protected]>
Thu, 16 Apr 2026 05:35:36 +0000 (02:35 -0300)
committerTulio A M Mendes <[email protected]>
Thu, 16 Apr 2026 05:35:36 +0000 (02:35 -0300)
commit3c0520a8ec308fffe1f6e60165c7ff2118a55d83
tree41f06e86cbbfa57ec0d0e28feed396d661094f2a
parentc202fdf4c64c186e9bfa3676f1a0e095635829ed
fix(execve): reset signal handlers and clear pending signals on execve

POSIX requires that execve resets all signal handlers to SIG_DFL
(except SIG_IGN) and clears pending signals. Without this, the
kernel could attempt to deliver a signal to a handler address in
the destroyed old address space, causing a crash.

Also removed debug trace code (ldso trace, write trace, exit trace,
PTE dumps, GOT dumps) that was added during debugging and was
interfering with test output.
src/kernel/syscall.c