fix sigsuspend syscall
authorRich Felker <dalias@aerifal.cx>
Thu, 10 Mar 2011 15:26:16 +0000 (10:26 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 10 Mar 2011 15:26:16 +0000 (10:26 -0500)
src/signal/sigsuspend.c

index 1acdab06d1949ace1717d21cd1aa04fe19bb3fdd..7ce526c4dd0408bcd819f69c556a580e51d4c753 100644 (file)
@@ -3,5 +3,5 @@
 
 int sigsuspend(const sigset_t *mask)
 {
-       return syscall2(__NR_rt_sigsuspend, (long)mask, sizeof(sigset_t));
+       return syscall2(__NR_rt_sigsuspend, (long)mask, SYSCALL_SIGSET_SIZE);
 }