diff options
author | Graham Barr <gbarr@pobox.com> | 2001-11-20 19:28:59 +0000 |
---|---|---|
committer | Graham Barr <gbarr@pobox.com> | 2001-11-20 19:28:59 +0000 |
commit | 31bc66cadfaf7adb3e67f061ddb09d6009080b5b (patch) | |
tree | 74d6d6e14f7de9cfc30dd97755031b10a3dca91a | |
parent | bb8c851e36e7d80479124e7b8af33216644a8d5c (diff) | |
download | perl-libnet-31bc66cadfaf7adb3e67f061ddb09d6009080b5b.tar.gz |
Net::FTP
- Dont send QUIT on DESTROY. Causes problems when fork() is used.
-rw-r--r-- | Net/FTP.pm | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -22,7 +22,7 @@ use Net::Config; use Fcntl qw(O_WRONLY O_RDONLY O_APPEND O_CREAT O_TRUNC); # use AutoLoader qw(AUTOLOAD); -$VERSION = "2.62"; # $Id: //depot/libnet/Net/FTP.pm#62 $ +$VERSION = "2.62"; # $Id: //depot/libnet/Net/FTP.pm#63 $ @ISA = qw(Exporter Net::Cmd IO::Socket::INET); # Someday I will "use constant", when I am not bothered to much about @@ -142,11 +142,7 @@ sub quit $ftp->close; } -sub DESTROY -{ - my $ftp = shift; - defined(fileno($ftp)) && $ftp->quit -} +sub DESTROY {} sub ascii { shift->type('A',@_); } sub binary { shift->type('I',@_); } @@ -1718,6 +1714,6 @@ under the same terms as Perl itself. =for html <hr> -I<$Id: //depot/libnet/Net/FTP.pm#62 $> +I<$Id: //depot/libnet/Net/FTP.pm#63 $> =cut |