diff options
Diffstat (limited to 'src/diag.c')
-rw-r--r-- | src/diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |