about summary refs log tree commit
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>2001-11-20 19:28:59 +0000
committerGraham Barr <gbarr@pobox.com>2001-11-20 19:28:59 +0000
commit31bc66cadfaf7adb3e67f061ddb09d6009080b5b (patch)
tree74d6d6e14f7de9cfc30dd97755031b10a3dca91a
parentbb8c851e36e7d80479124e7b8af33216644a8d5c (diff)
downloadperl-libnet-31bc66cadfaf7adb3e67f061ddb09d6009080b5b.tar.gz
Net::FTP
- Dont send QUIT on DESTROY. Causes problems when fork() is used.

-rw-r--r--Net/FTP.pm10
1 files changed, 3 insertions, 7 deletions
diff --git a/Net/FTP.pm b/Net/FTP.pm
index 49db7ca..ce41eef 100644
--- a/Net/FTP.pm
+++ b/Net/FTP.pm
@@ -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