From: Jarkko Hietaniemi Date: Sun, 8 Jul 2001 14:32:28 +0000 (+0000) Subject: A missing dTHX noticed by Gerrit P. Haase. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7feb700b9f07ce221e631b28bb4fe5cab7fddd08;p=p5sagit%2Fp5-mst-13.2.git A missing dTHX noticed by Gerrit P. Haase. p4raw-id: //depot/perl@11214 --- diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index 3e17039..dea2042 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -524,13 +524,14 @@ __END__ static void restore_sigmask(SV *osset_sv) { - /* Fortunately, restoring the signal mask can't fail, because - * there's nothing we can do about it if it does -- we're not - * supposed to return -1 from sigaction unless the disposition - * was unaffected. - */ - sigset_t *ossetp = (sigset_t *) SvPV_nolen( osset_sv ); - (void)sigprocmask(SIG_SETMASK, ossetp, (sigset_t *)0); + /* Fortunately, restoring the signal mask can't fail, because + * there's nothing we can do about it if it does -- we're not + * supposed to return -1 from sigaction unless the disposition + * was unaffected. + */ + dTHX; + sigset_t *ossetp = (sigset_t *) SvPV_nolen( osset_sv ); + (void)sigprocmask(SIG_SETMASK, ossetp, (sigset_t *)0); } MODULE = SigSet PACKAGE = POSIX::SigSet PREFIX = sig