← Commit list

b905d6c2e

Joshua Judson Rosen
Joshua Judson Rosen
2014-06-02
SUCCESS Duration: 135s

Subject

syslogd: remember to un-writelock log-files even when called with "-b 0"

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

sysklogd/syslogd.c+4 -0
@@ -670,6 +670,10 @@ static void log_locally(time_t now, char *msg, logFile_t *log_file)
*/
ftruncate(log_file->fd, 0);
log_file->size = 0;
+#ifdef SYSLOGD_WRLOCK
+ fl.l_type = F_UNLCK;
+ fcntl(log_file->fd, F_SETLKW, &fl);
+#endif
}
log_file->size +=
#endif