summaryrefslogtreecommitdiffabout
path: root/src/diag.c
Side-by-side diff
Diffstat (limited to 'src/diag.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/diag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diag.c b/src/diag.c
index 78e2741..bd5eff2 100644
--- a/src/diag.c
+++ b/src/diag.c
@@ -73,7 +73,7 @@ stderr_printer (LOGSTREAM *str, int prio, const char *fmt, va_list ap)
static int
stderr_open (int logf, LOGSTREAM *str)
{
- if (logf & DIAG_REOPEN_LOG)
+ if (PIES_SYSVINIT_ENABLED && (logf & DIAG_REOPEN_LOG))
{
int fd = console_open (O_WRONLY|O_NOCTTY|O_NDELAY);
if (fd == -1)

Return to:

Send suggestions and report system problems to the System administrator.