mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2003-01-28 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/common/pause.c (do_pause): New function. Split from __libc_pause. Implement using sigsuspend. (__libc_pause): Call do_pause to do the real work. * sysdeps/posix/sigpause.c (do_sigpause): Check range of sig_or_mask parameter is is_sig != 0.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1991,92,94-98,2000,02 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1991,92,94-98,2000,2002,2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -34,7 +34,8 @@ do_sigpause (int sig_or_mask, int is_sig)
|
||||
{
|
||||
/* The modern X/Open implementation is requested. */
|
||||
if (__sigprocmask (0, NULL, &set) < 0
|
||||
/* Yes, we call `sigdelset' and not `__sigdelset'. */
|
||||
/* Perform the tests from sigdelset ourselves. */
|
||||
|| sig_or_mask <= 0 || sig_or_mask >= NSIG
|
||||
|| __sigdelset (&set, sig_or_mask) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user