Update of /cvsroot/naviserver/naviserver/nslog
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11364/nslog
Modified Files:
nslog.c
Log Message:
Missed initialization of logfile descriptor.
This caused us to close invalid descriptor
in LogOpen. As the result, the interactive
NS mode assumed non-interactive use and
prematurely exited.
Index: nslog.c
===================================================================
RCS file: /cvsroot/naviserver/naviserver/nslog/nslog.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** nslog.c 17 Oct 2005 11:25:17 -0000 1.12
--- nslog.c 17 Oct 2005 11:28:21 -0000 1.13
***************
*** 188,191 ****
--- 188,192 ----
logPtr = ns_calloc(1,sizeof(Log));
logPtr->module = module;
+ logPtr->fd = -1;
Ns_MutexInit(&logPtr->lock);
Ns_MutexSetName2(&logPtr->lock, "nslog", server);
|