Commit bd37c666 authored by Martin Pool's avatar Martin Pool

Fix error handling for failing to fork after accepting a connection --

close fd, sleep, then try again.
parent 371d1c36
......@@ -435,9 +435,9 @@ void start_accept_loop(int port, int (*fn)(int ))
* overloaded. Sleep briefly before trying to
* accept again. */
sleep(2);
} else {
close(fd);
}
close(fd);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment