aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/restart.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-07-29 18:41:02 +0000
committerUlrich Drepper <drepper@redhat.com>1998-07-29 18:41:02 +0000
commitddbf7fef451eeb417ea28ca114f8f12c58dd5ca8 (patch)
tree4dbe0d974d84993dd580f97744121ae965ca4e2e /linuxthreads/restart.h
parentef5742267ce858e059ee27033014c24f009bb326 (diff)
downloadglibc-ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8.zip
glibc-ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8.tar.gz
glibc-ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8.tar.bz2
Update.
1998-07-29 Mark Kettenis <kettenis@phys.uva.nl> * sysdeps/mach/hurd/dl-sysdep.c (__lseek): New function. (__getpid): New function. (abort): New function. * nis/nis_cache2_xdr.c: Removed.
Diffstat (limited to 'linuxthreads/restart.h')
-rw-r--r--linuxthreads/restart.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/linuxthreads/restart.h b/linuxthreads/restart.h
index 4b4a1d7..54a6f50 100644
--- a/linuxthreads/restart.h
+++ b/linuxthreads/restart.h
@@ -18,7 +18,7 @@
static inline void restart(pthread_descr th)
{
- kill(th->p_pid, PTHREAD_SIG_RESTART);
+ kill(th->p_pid, __pthread_sig_restart);
}
static inline void suspend(pthread_descr self)
@@ -26,11 +26,11 @@ static inline void suspend(pthread_descr self)
sigset_t mask;
sigprocmask(SIG_SETMASK, NULL, &mask); /* Get current signal mask */
- sigdelset(&mask, PTHREAD_SIG_RESTART); /* Unblock the restart signal */
+ sigdelset(&mask, __pthread_sig_restart); /* Unblock the restart signal */
do {
self->p_signal = 0;
sigsuspend(&mask); /* Wait for signal */
- } while (self->p_signal != PTHREAD_SIG_RESTART);
+ } while (self->p_signal !=__pthread_sig_restart );
}
static inline void suspend_with_cancellation(pthread_descr self)
@@ -39,7 +39,7 @@ static inline void suspend_with_cancellation(pthread_descr self)
sigjmp_buf jmpbuf;
sigprocmask(SIG_SETMASK, NULL, &mask); /* Get current signal mask */
- sigdelset(&mask, PTHREAD_SIG_RESTART); /* Unblock the restart signal */
+ sigdelset(&mask, __pthread_sig_restart); /* Unblock the restart signal */
/* No need to save the signal mask, we'll restore it ourselves */
if (sigsetjmp(jmpbuf, 0) == 0) {
self->p_cancel_jmp = &jmpbuf;
@@ -47,11 +47,11 @@ static inline void suspend_with_cancellation(pthread_descr self)
do {
self->p_signal = 0;
sigsuspend(&mask); /* Wait for a signal */
- } while (self->p_signal != PTHREAD_SIG_RESTART);
+ } while (self->p_signal != __pthread_sig_restart);
}
self->p_cancel_jmp = NULL;
} else {
- sigaddset(&mask, PTHREAD_SIG_RESTART); /* Reblock the restart signal */
+ sigaddset(&mask, __pthread_sig_restart); /* Reblock the restart signal */
sigprocmask(SIG_SETMASK, &mask, NULL);
}
}