From 4e928c040dc9a9ef22d1f0f088b94316e1abbdae Mon Sep 17 00:00:00 2001 From: rd235 Date: Thu, 19 Apr 2007 19:04:18 +0000 Subject: [PATCH] debug options survived to mgmt close (and new mgmt open). git-svn-id: https://vde.svn.sourceforge.net/svnroot/vde/trunk@145 d37a7db1-d92d-0410-89df-f68f52f87b57 --- vde-2/consmgmt.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vde-2/consmgmt.c b/vde-2/consmgmt.c index c93e411..0787cf7 100644 --- a/vde-2/consmgmt.c +++ b/vde-2/consmgmt.c @@ -273,6 +273,9 @@ void loadrcfile(void) } } +#ifdef DEBUGOPT +static int debugdel(int fd,char *arg); +#endif static char *EOS="9999 END OF SESSION"; static void handle_input(unsigned char type,int fd,int revents,int *unused) { @@ -291,6 +294,9 @@ static void handle_input(unsigned char type,int fd,int revents,int *unused) printlog(LOG_WARNING,"EOF on stdin, cleaning up and exiting"); exit(0); } else { +#ifdef DEBUGOPT + debugdel(fd,""); +#endif remove_fd(fd); } } else { @@ -303,6 +309,9 @@ static void handle_input(unsigned char type,int fd,int revents,int *unused) else { if(type==mgmt_data) { write(fd,EOS,strlen(EOS)); +#ifdef DEBUGOPT + debugdel(fd,""); +#endif remove_fd(fd); } if (cmdout == -2) -- 2.11.4.GIT