mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Close stdout on socket EOF.
This commit is contained in:
parent
88a35de3b5
commit
9901c8e7a9
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue