Files
epics-base/errlog-atExit.patch
2011-03-22 13:27:48 +00:00

18 lines
589 B
Diff

=== modified file 'src/libCom/error/errlog.c'
--- src/libCom/error/errlog.c 2010-11-15 21:46:40 +0000
+++ src/libCom/error/errlog.c 2011-01-07 16:04:56 +0000
@@ -119,10 +119,11 @@
errlogInit(0);
if (pvtData.atExit || (isOkToBlock && pvtData.toConsole)) {
va_start(pvar, pFormat);
- vfprintf(stderr, pFormat, pvar);
+ nchar = vfprintf(stderr, pFormat, pvar);
va_end (pvar);
fflush(stderr);
}
+ if (pvtData.atExit) return nchar;
pbuffer = msgbufGetFree(isOkToBlock);
if (!pbuffer) return 0;
va_start(pvar, pFormat);