diff options
author | Erwin Lansing <erwin@FreeBSD.org> | 2003-10-05 10:34:13 +0000 |
---|---|---|
committer | Erwin Lansing <erwin@FreeBSD.org> | 2003-10-05 10:34:13 +0000 |
commit | 74b3749525684f5b0ac743e5003ad1345ffb5753 (patch) | |
tree | ba0ddb7cb7653967ec77706d5b7ccb7d98e58ff5 /net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm | |
parent | Update to 0.9.70 (diff) |
Update to 1.15a
Notes
Notes:
svn path=/head/; revision=90305
Diffstat (limited to 'net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm')
-rw-r--r-- | net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm b/net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm new file mode 100644 index 000000000000..4ddc234324fc --- /dev/null +++ b/net/p5-Net-SNPP/files/patch-lib-Net-SNPP-Server.pm @@ -0,0 +1,28 @@ +--- lib/Net/SNPP/Server.pm.orig Fri Oct 3 15:46:55 2003 ++++ lib/Net/SNPP/Server.pm Sun Oct 5 12:29:05 2003 +@@ -1,6 +1,5 @@ + package Net::SNPP::Server; + use strict; +-use warnings; + use Socket; + use IO::Handle; + use Net::Cmd; +@@ -415,7 +414,6 @@ + # 4.3.6 HELP (optional) ---------------------------------------------- # + elsif ( $user_cmd eq 'HELP' ) { + { +- no warnings; # so we can use <DATA> + while (<DATA>) { $client->command( $_ ) } + $client->command( "250 End of Help Information" ); + } +@@ -573,7 +571,9 @@ + my @pids = (); # pids to merge before exit + + # create a pipe for communication from child back to this process +- our( $rp, $wp ) = ( IO::Handle->new(), IO::Handle->new() ); ++ use vars qw($rp $wp); ++ $rp = IO::Handle->new(); ++ $wp = IO::Handle->new(); + pipe( $rp, $wp ) + || die "could not create READ/WRITE pipes"; + $wp->autoflush(1); |