mirror of git://sourceware.org/git/glibc.git
2003-02-24 Roland McGrath <roland@redhat.com>
* sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
This commit is contained in:
parent
20c54fe445
commit
d102d69999
|
|
@ -19,6 +19,7 @@
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <sysdep-cancel.h>
|
||||||
|
|
||||||
/* Suspend the process until a signal arrives.
|
/* Suspend the process until a signal arrives.
|
||||||
This always returns -1 and sets errno to EINTR. */
|
This always returns -1 and sets errno to EINTR. */
|
||||||
|
|
@ -36,3 +37,5 @@ __libc_pause (void)
|
||||||
return __sigsuspend (&set);
|
return __sigsuspend (&set);
|
||||||
}
|
}
|
||||||
weak_alias (__libc_pause, pause)
|
weak_alias (__libc_pause, pause)
|
||||||
|
|
||||||
|
LIBC_CANCEL_HANDLED (); /* sigsuspend handles our cancellation. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue