projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1e54e4
)
compilation fix by Bernhard Fischer <rep.nop@aon.at>
author
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 9 Jan 2007 23:39:48 +0000
(23:39 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Tue, 9 Jan 2007 23:39:48 +0000
(23:39 -0000)
sysklogd/syslogd.c
patch
|
blob
|
history
diff --git
a/sysklogd/syslogd.c
b/sysklogd/syslogd.c
index 01120757b70d206d5981f210d47253cf5566755e..41d7c96560472e567aeae85cfa0ca839e5626324 100644
(file)
--- a/
sysklogd/syslogd.c
+++ b/
sysklogd/syslogd.c
@@
-290,7
+290,9
@@
static void log_locally(char *msg)
goto reopen;
}
} else {
+#if ENABLE_FEATURE_ROTATE_LOGFILE
struct stat statf;
+#endif
reopen:
logFD = device_open(logFilePath, O_WRONLY | O_CREAT
| O_NOCTTY | O_APPEND | O_NONBLOCK);
@@
-340,8
+342,9
@@
static void log_locally(char *msg)
}
ftruncate(logFD, 0);
}
+ curFileSize +=
#endif
-
curFileSize +=
full_write(logFD, msg, len);
+
full_write(logFD, msg, len);
fl.l_type = F_UNLCK;
fcntl(logFD, F_SETLKW, &fl);
}