char *fmt2;
#endif
+ POOL_SETMASK(&BlockSig);
+
if (pool_config.print_timestamp)
#ifdef HAVE_ASPRINTF
asprintf(&fmt2, "%s ERROR: pid %d: %s\n", nowsec(), (int)getpid(), fmt);
va_end(ap);
fprintf(stderr, "\n");
#endif
+
+ POOL_SETMASK(&UnBlockSig);
}
void pool_debug(const char *fmt,...)
if (!debug)
return;
+ POOL_SETMASK(&BlockSig);
+
if (pool_config.print_timestamp)
#ifdef HAVE_ASPRINTF
asprintf(&fmt2, "%s DEBUG: pid %d: %s\n", nowsec(), (int)getpid(), fmt);
va_end(ap);
fprintf(stderr, "\n");
#endif
+
+ POOL_SETMASK(&UnBlockSig);
}
void pool_log(const char *fmt,...)
char *fmt2;
#endif
+ POOL_SETMASK(&BlockSig);
+
if (pool_config.print_timestamp)
#ifdef HAVE_ASPRINTF
asprintf(&fmt2, "%s LOG: pid %d: %s\n", nowsec(), (int)getpid(), fmt);
va_end(ap);
fprintf(stderr, "\n");
#endif
+
+ POOL_SETMASK(&UnBlockSig);
}
static char *nowsec(void)