diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/sigaction.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/sigaction.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sigaction.c b/sysdeps/unix/sysv/linux/sigaction.c index 49cb3b6a89..773bfa067f 100644 --- a/sysdeps/unix/sysv/linux/sigaction.c +++ b/sysdeps/unix/sysv/linux/sigaction.c @@ -50,6 +50,7 @@ __sigaction (sig, act, oact) if (!__libc_missing_rt_sigs) { struct kernel_sigaction kact, koact; + int saved_errno = errno; if (act) { @@ -80,6 +81,7 @@ __sigaction (sig, act, oact) return result; } + __set_errno (saved_errno); __libc_missing_rt_sigs = 1; } |