On Tue, Apr 29, 2008 at 7:44 PM, Zoran Vasiljevic <[EMAIL PROTECTED]> wrote: > Update of /cvsroot/naviserver/naviserver/nsd > In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1402/nsd > > Modified Files: > tcljob.c > Log Message: > nsd/tcljob.c: Fixed wrong access to queuePtr variable > in the worker thread (Bug introduced 2008-04-26). Made > LookupQueue errors trigger Fatal exceptions when run > from within the worker threads. > > > --- 1239,1242 ---- > *************** > *** 1330,1334 **** > while (!done && jobPtr != NULL) { > > ! LookupQueue(NULL, jobPtr->queueId, &queuePtr, 1); > > /* > --- 1331,1337 ---- > while (!done && jobPtr != NULL) { > > ! if (LookupQueue(NULL, jobPtr->queueId, &queuePtr, 1) != TCL_OK) { > ! Ns_Log(Fatal, "cannot find queue: %s", jobPtr->queueId); > ! } > > /* > ***************
Should call Ns_Fatal() here, not Ns_Log(Fatal, ...) (Ns_Log(Fatal, ) is kind of a hidden implementation detail) ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel