diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-09 03:03:54 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-09 03:03:54 +0000 |
commit | 42853c3205a18a9c75bb0daf232ccf8f884636bc (patch) | |
tree | 1e1bbb2c3f1da8a0f34cb74b80944b8749ec41fa /libc/signal | |
parent | 6f117c6b4b9da495efb37d12a623d40191c19941 (diff) |
sync with glibc
Diffstat (limited to 'libc/signal')
-rw-r--r-- | libc/signal/sigaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/signal/sigaction.c b/libc/signal/sigaction.c index 5336b7609..fb46f9c01 100644 --- a/libc/signal/sigaction.c +++ b/libc/signal/sigaction.c @@ -40,7 +40,7 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) if (act) { kact.k_sa_handler = act->sa_handler; - __memcpy (&kact.sa_mask, &act->sa_mask, sizeof (kact.sa_mask)); + __memcpy (&kact.sa_mask, &act->sa_mask, sizeof (sigset_t)); kact.sa_flags = act->sa_flags; # ifdef HAVE_SA_RESTORER kact.sa_restorer = act->sa_restorer; @@ -55,7 +55,7 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact) if (oact && result >= 0) { oact->sa_handler = koact.k_sa_handler; - __memcpy (&oact->sa_mask, &koact.sa_mask, sizeof (oact->sa_mask)); + __memcpy (&oact->sa_mask, &koact.sa_mask, sizeof (sigset_t)); oact->sa_flags = koact.sa_flags; # ifdef HAVE_SA_RESTORER oact->sa_restorer = koact.sa_restorer; |