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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user