commit | 9aa6ffb22b712d4e928604e291f954b02237e8cd | [log] [tgz] |
---|---|---|
author | Joshua Judson Rosen <jrosen@harvestai.com> | Tue May 20 01:02:20 2014 -0400 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon Jun 02 03:11:40 2014 +0200 |
tree | ad606fe29c75f2acfdad5c2b328d56f911c3047e | |
parent | b905d6c2eaaf7ad92a50dccc7b91ee19dd9424b7 [diff] |
syslogd: Unify unlink/truncate + unlock log-rotation logic Always unlink + reopen, rather than sometimes using ftruncate(); using a single code-path reduces the opportunity for either mistakes or duplicate code. Signed-off-by: Joshua Judson Rosen <jrosen@harvestai.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>