]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-process: Init signal files ctx on signal desc creation
authorSergiu Moga <sergiu@unikraft.io>
Thu, 20 Mar 2025 18:46:01 +0000 (20:46 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 23 Apr 2025 10:01:21 +0000 (10:01 +0000)
commit835b50ab272ffc9b2fd9996d6d45e235dc1378c7
tree6b7d9c8e2554d7a251b15f5ae869ae5d9f4a9391
parent8e4c7d9c5ef6d0b63983cfbb48c5360b1aac2700
lib/posix-process: Init signal files ctx on signal desc creation

We have two initialization places for the signal files context of a
signal files context:
- on vfork when a child process is born and its signal descriptor is
correspondingly inherited from the parent
- on signal descriptor initialization on regular process creation

For the former, at this time, we do not support proper open file
inheritance across vfork/execve for those that do not have the
O_CLOEXEC flag. Therefore, for now, simply just initialize child
process' signal descriptor signal file context as empty.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1619
lib/posix-process/signal/clone.c
lib/posix-process/signal/signal.c