1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

ftpserver.pl: log before and after data connection is closed

This commit is contained in:
Marc Hoersken 2020-04-02 18:31:02 +02:00
parent a30237e3d1
commit 7208a989b7
No known key found for this signature in database
GPG Key ID: 61E03CBED7BC859E

View File

@ -687,6 +687,7 @@ sub close_dataconn {
print DWRITE "DISC\n";
my $i;
sysread DREAD, $i, 5;
logmsg "Server disconnected $datasockf_mode DATA connection\n";
}
else {
logmsg "Server finds $datasockf_mode DATA connection already ".
@ -699,10 +700,12 @@ sub close_dataconn {
}
if($datapid > 0) {
logmsg "DATA sockfilt for $datasockf_mode data channel quits ".
"(pid $datapid)\n";
print DWRITE "QUIT\n";
waitpid($datapid, 0);
unlink($datasockf_pidfile) if(-f $datasockf_pidfile);
logmsg "DATA sockfilt for $datasockf_mode data channel quits ".
logmsg "DATA sockfilt for $datasockf_mode data channel quit ".
"(pid $datapid)\n";
}
else {