mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Avoid re-forking. Fixes bug #20458.
This commit is contained in:
parent
9561f6bd2b
commit
3323ed3c17
@ -1,3 +1,7 @@
|
|||||||
|
2008-05-22 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
|
* FTPServer.pm (run): Avoid re-forking. Fixes bug #20458.
|
||||||
|
|
||||||
2008-04-26 Micah Cowan <micah@cowan.name>
|
2008-04-26 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* Makefile.am, Test-proxied-https-auth.px: Added a test for
|
* Makefile.am, Test-proxied-https-auth.px: Added a test for
|
||||||
|
@ -833,14 +833,14 @@ sub run
|
|||||||
print STDERR "got a connection from: $client_ipnum\n" if $log;
|
print STDERR "got a connection from: $client_ipnum\n" if $log;
|
||||||
|
|
||||||
# fork off a process to handle this connection.
|
# fork off a process to handle this connection.
|
||||||
my $pid = fork();
|
# my $pid = fork();
|
||||||
unless (defined $pid) {
|
# unless (defined $pid) {
|
||||||
warn "fork: $!";
|
# warn "fork: $!";
|
||||||
sleep 5; # Back off in case system is overloaded.
|
# sleep 5; # Back off in case system is overloaded.
|
||||||
next;
|
# next;
|
||||||
}
|
# }
|
||||||
|
|
||||||
if ($pid == 0) { # Child process.
|
if (1) { # Child process.
|
||||||
|
|
||||||
# install signals
|
# install signals
|
||||||
$SIG{URG} = sub {
|
$SIG{URG} = sub {
|
||||||
|
Loading…
Reference in New Issue
Block a user