diff options
Diffstat (limited to 'runit/svlogd.c')
-rw-r--r-- | runit/svlogd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runit/svlogd.c b/runit/svlogd.c index 9a00fadee..fe40cd890 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c | |||
@@ -761,8 +761,8 @@ static NOINLINE unsigned logdir_open(struct logdir *ld, const char *fn) | |||
761 | } | 761 | } |
762 | while ((ld->fdcur = open("current", O_WRONLY|O_NDELAY|O_APPEND|O_CREAT, 0600)) == -1) | 762 | while ((ld->fdcur = open("current", O_WRONLY|O_NDELAY|O_APPEND|O_CREAT, 0600)) == -1) |
763 | pause2cannot("open current", ld->name); | 763 | pause2cannot("open current", ld->name); |
764 | /* we presume this cannot fail */ | 764 | while ((ld->filecur = fdopen(ld->fdcur, "a")) == NULL) |
765 | ld->filecur = fdopen(ld->fdcur, "a"); //// | 765 | pause2cannot("open current", ld->name); //// |
766 | setvbuf(ld->filecur, NULL, _IOFBF, linelen); //// | 766 | setvbuf(ld->filecur, NULL, _IOFBF, linelen); //// |
767 | 767 | ||
768 | close_on_exec_on(ld->fdcur); | 768 | close_on_exec_on(ld->fdcur); |