1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 23:49:03 +00:00

Don't wait on server that doesn't listen.

This commit is contained in:
david
2013-08-16 08:03:06 +00:00
parent 02a7dc917f
commit 1baf716fd0

View File

@@ -714,7 +714,7 @@ sub {
$code = $? >> 8;
$code == 2 or die "Exit code was $code, not 2";
my ($s_pid, $s_out, $s_in) = ncat_server("--baffle");
my ($s_pid, $s_out, $s_in) = ncat("-l", "--baffle");
do {
$pid = waitpid($s_pid, 0);
} while ($pid > 0 && $pid != $s_pid);