aboutsummaryrefslogtreecommitdiff
path: root/src/diag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diag.c')
-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
@@ -70,13 +70,13 @@ stderr_printer (LOGSTREAM *str, int prio, const char *fmt, va_list ap)
return 0;
}
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 -1;
str->file = fdopen (fd, "w");
if (!str->file)

Return to:

Send suggestions and report system problems to the System administrator.