From e4fc05537b4d8da265d3c1af5dd2aac8acdbfa8f Mon Sep 17 00:00:00 2001 From: ha7ilm Date: Sun, 15 Jan 2017 20:13:24 +0100 Subject: [PATCH] nmux: clients print double check before and after client clean up --- nmux.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nmux.cpp b/nmux.cpp index 49733b9..654d068 100644 --- a/nmux.cpp +++ b/nmux.cpp @@ -189,6 +189,12 @@ int main(int argc, char* argv[]) //Is there a new client connection? if( FD_ISSET(listen_socket, &select_fds) && ((new_socket = accept(listen_socket, (struct sockaddr*)&addr_cli, &addr_cli_len)) != -1) ) { + if(NMUX_DEBUG) + { + fprintf(stderr, "\x1b[1m\x1b[33mmainfor: clients before closing: "); + for(int i=0;i