diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-07-29 18:41:02 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-07-29 18:41:02 +0000 |
commit | ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8 (patch) | |
tree | 4dbe0d974d84993dd580f97744121ae965ca4e2e /linuxthreads/restart.h | |
parent | ef5742267ce858e059ee27033014c24f009bb326 (diff) | |
download | glibc-ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8.tar.gz glibc-ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8.tar.xz glibc-ddbf7fef451eeb417ea28ca114f8f12c58dd5ca8.zip |
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.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linuxthreads/restart.h b/linuxthreads/restart.h index 4b4a1d7937..54a6f50321 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); } } |