diff options
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -3869,7 +3869,6 @@ has_privilege(void) struct child_handler_disabler_state { sigset_t sigmask; - int cancelstate; }; static void @@ -3890,13 +3889,6 @@ disable_child_handler_before_fork(struct child_handler_disabler_state *old) #else # pragma GCC warning "pthread_sigmask on fork is not available. potentially dangerous" #endif - -#ifdef PTHREAD_CANCEL_DISABLE - ret = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &old->cancelstate); - if (ret != 0) { - rb_syserr_fail(ret, "pthread_setcancelstate"); - } -#endif } static void @@ -3904,13 +3896,6 @@ disable_child_handler_fork_parent(struct child_handler_disabler_state *old) { int ret; -#ifdef PTHREAD_CANCEL_DISABLE - ret = pthread_setcancelstate(old->cancelstate, NULL); - if (ret != 0) { - rb_syserr_fail(ret, "pthread_setcancelstate"); - } -#endif - #ifdef HAVE_PTHREAD_SIGMASK ret = pthread_sigmask(SIG_SETMASK, &old->sigmask, NULL); /* not async-signal-safe */ if (ret != 0) { |