[prev in list] [next in list] [prev in thread] [next in thread]
List: netsaint-devel
Subject: [netsaint-devel] Fix to make command interface work after getting EOF conditions
From: Thorsten Lockert <tholo () sigmasoft ! com>
Date: 2001-02-13 23:03:13
[Download RAW message or body]
Index: base/commands.c
===================================================================
RCS file: /cvsroot/netsaint/netsaint-alpha/base/commands.c,v
retrieving revision 1.3
diff -u -r1.3 commands.c
--- base/commands.c 2001/02/09 03:10:34 1.3
+++ base/commands.c 2001/02/13 23:03:13
@@ -94,6 +94,9 @@
/* reset passive check result list pointer */
passive_check_result_list=NULL;
+ /* clear EOF condition from prior run */
+ clearerr(command_file_fp);
+
/* process all commands in the file (now implemented as a named pipe) */
while(fgets(buffer,(int)(sizeof(buffer)-1),command_file_fp)!=NULL){
_______________________________________________
Netsaint-devel mailing list
Netsaint-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/netsaint-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic