linux: Do not reset signal handler in posix_spawn if it is already SIG_DFL
commitff9ffc805f5859f9f1fe3a006967b4cf7b191bb2
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Thu, 12 Jan 2023 13:58:48 +0000 (12 10:58 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 1 Feb 2023 11:42:11 +0000 (1 08:42 -0300)
tree71d49570c0f8c0fa96456da449ae6b59e8985950
parent2412deae1af0ca37b096ff73517486e7d1e9fe46
linux: Do not reset signal handler in posix_spawn if it is already SIG_DFL

There is no need to issue another sigaction if the disposition is
already SIG_DFL.

Checked on x86_64-linux-gnu.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/spawni.c