diff options
| author | Thomas Gleixner <[email protected]> | 2024-11-05 08:14:49 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2024-11-07 01:14:45 +0000 |
| commit | 69f032c92cf883ea74a4b69ba3d91317aa6f174e (patch) | |
| tree | ec23a73ef67fee11a7f491dcc518a6ed45eb2222 /init/init_task.c | |
| parent | posix-timers: Move sequence logic into struct k_itimer (diff) | |
| download | kernel-69f032c92cf883ea74a4b69ba3d91317aa6f174e.tar.gz kernel-69f032c92cf883ea74a4b69ba3d91317aa6f174e.zip | |
signal: Provide ignored_posix_timers list
To prepare for handling posix timer signals on sigaction(SIG_IGN) properly,
add a list to task::signal.
This list will be used to queue posix timers so their signal can be
requeued when SIG_IGN is lifted later.
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Frederic Weisbecker <[email protected]>
Acked-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'init/init_task.c')
| -rw-r--r-- | init/init_task.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/init/init_task.c b/init/init_task.c index 136a8231355a..e557f622bd90 100644 --- a/init/init_task.c +++ b/init/init_task.c @@ -30,8 +30,9 @@ static struct signal_struct init_signals = { .cred_guard_mutex = __MUTEX_INITIALIZER(init_signals.cred_guard_mutex), .exec_update_lock = __RWSEM_INITIALIZER(init_signals.exec_update_lock), #ifdef CONFIG_POSIX_TIMERS - .posix_timers = HLIST_HEAD_INIT, - .cputimer = { + .posix_timers = HLIST_HEAD_INIT, + .ignored_posix_timers = HLIST_HEAD_INIT, + .cputimer = { .cputime_atomic = INIT_CPUTIME_ATOMIC, }, #endif |
