summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-12-18 00:27:43 +0000
committerNicholas Clark <nick@ccl4.org>2006-12-18 00:27:43 +0000
commitfc8b6fe205ed92b06e98c1a558c82355dbefc067 (patch)
treec458e5b71896f1f34d5f233a09892c22b8897f5b /ext
parent5912531faf421dc0ccf67f600667fb8051dc62a5 (diff)
downloadperl-fc8b6fe205ed92b06e98c1a558c82355dbefc067.tar.gz
POSIX::SigAction::new can be moved into the AUTOLOAD section.
p4raw-id: //depot/perl@29571
Diffstat (limited to 'ext')
-rw-r--r--ext/POSIX/POSIX.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/POSIX/POSIX.pm b/ext/POSIX/POSIX.pm
index 617d999828..a63ff15acc 100644
--- a/ext/POSIX/POSIX.pm
+++ b/ext/POSIX/POSIX.pm
@@ -59,7 +59,6 @@ sub AUTOLOAD {
package POSIX::SigAction;
use AutoLoader 'AUTOLOAD';
-sub new { bless {HANDLER => $_[1], MASK => $_[2], FLAGS => $_[3] || 0, SAFE => 0}, $_[0] }
package POSIX::SigRt;
@@ -1036,6 +1035,7 @@ require Exporter;
package POSIX::SigAction;
+sub new { bless {HANDLER => $_[1], MASK => $_[2], FLAGS => $_[3] || 0, SAFE => 0}, $_[0] }
sub handler { $_[0]->{HANDLER} = $_[1] if @_ > 1; $_[0]->{HANDLER} };
sub mask { $_[0]->{MASK} = $_[1] if @_ > 1; $_[0]->{MASK} };
sub flags { $_[0]->{FLAGS} = $_[1] if @_ > 1; $_[0]->{FLAGS} };