New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POSIX::sigprocmask is non-permanent #5575
Comments
From gbacon@mail.hiwaay.netPOSIX::sigprocmask doesn't seem to permanently alter the signal mask. [21:26] fly% cat ptry use strict; use POSIX qw/ :signal_h /; END { print "exiting...\n" } my $mask = new POSIX::SigSet; $mask->fillset; unless (defined sigprocmask SIG_SETMASK, $mask) { unless (defined raise SIGSEGV) { print "almost done...\n"; Compare this to the equivalent C program: [21:28] fly% cat try.c int sigfillset(&mask); if (sigprocmask(SIG_SETMASK, &mask, 0) < 0) { if (raise(SIGSEGV) < 0) { return 0; Perl Info
|
From [Unknown Contact. See original ticket]On Sun, Jun 16, 2002 at 09:31:47PM -0500, Greg Bacon wrote:
I didn't figure out why, but I did verify it's fixed in RC2. Solaris 2.7: $ /usr/local/bin/perl use POSIX qw/ :signal_h /; unless (defined sigprocmask SIG_SETMASK, $mask) { unless (defined raise SIGSEGV) { print "almost done...\n"; $ /usr/local/perl580/bin/perl use POSIX qw/ :signal_h /; unless (defined sigprocmask SIG_SETMASK, $mask) { unless (defined raise SIGSEGV) { print "almost done...\n"; -- |
Migrated from rt.perl.org#9675 (status was 'resolved')
Searchable as RT9675$
The text was updated successfully, but these errors were encountered: