mirror of
https://github.com/nmap/nmap.git
synced 2025-12-29 02:49:01 +00:00
Close stdout on socket EOF.
This commit is contained in:
@@ -832,6 +832,7 @@ static void read_socket_handler(nsock_pool nsp, nsock_event evt, void *data)
|
||||
ncat_assert(type == NSE_TYPE_READ);
|
||||
|
||||
if (status == NSE_STATUS_EOF) {
|
||||
Close(STDOUT_FILENO);
|
||||
/* In --recv-only mode, exit after EOF on the socket. */
|
||||
if (o.recvonly)
|
||||
nsock_loop_quit(nsp);
|
||||
|
||||
Reference in New Issue
Block a user