signal-util: use common definitions for ignore + default "struct sigaction"
authorLennart Poettering <lennart@poettering.net>
Wed, 10 Jul 2024 15:14:17 +0000 (17:14 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 12 Jul 2024 06:26:15 +0000 (08:26 +0200)
commit0bd721763436e6b156eebcf94492525631801668
treef54aeb8340199518c0ad2088d113b2eeb491a016
parent7eedec7307dd5d1f4f4ad1b61b01e7283856388b
signal-util: use common definitions for ignore + default "struct sigaction"

We use this at various places, let's unify this in one global constant.

This changes flags in crash-handler.c in a tiny irrelevant way: we ask
syscalls to be continued on signal arrival, which we previously didn't.
But that shouldn't change anything, the only thing we'll do in the
relevant process is call raise(), and that's it, hence there definitely
are no syscalls to restart or not to restart.
src/basic/signal-util.c
src/basic/signal-util.h
src/basic/terminal-util.c
src/core/crash-handler.c
src/tty-ask-password-agent/tty-ask-password-agent.c