Respect user-defined exit signal in clone() and clone3()

When calling clone() and clone3(), the user is allowed to specify a
signal to be sent to the parent process on exit. Respect this value by
storing it in the Process struct and sending the signal on exit.

Add a test as well to verify that the signal is properly delivered to
the parent.
This commit is contained in:
Carlos López
2024-09-24 21:33:10 +02:00
committed by Tate, Hongliang Tian
parent 130a0f7030
commit 0a36760f7a
7 changed files with 122 additions and 14 deletions

View File

@ -10,6 +10,8 @@ cd ${SCRIPT_DIR}/..
echo "Start process test......"
# These test programs are sorted by name.
tests="
clone3/clone_exit_signal
clone3/clone_no_exit_signal
clone3/clone_process
execve/execve
eventfd2/eventfd2