<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/sysklogd, branch FRP</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=FRP</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=FRP'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2015-03-22T16:37:20+00:00</updated>
<entry>
<title>logread: implement dumpfollow mode of operation</title>
<updated>2015-03-22T16:37:20+00:00</updated>
<author>
<name>Phil Sutter</name>
<email>phil.sutter@viprinet.com</email>
</author>
<published>2015-03-22T16:36:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=92edab1aa6eae45ac8fa0cec8c8df9a47f547300'/>
<id>urn:sha1:92edab1aa6eae45ac8fa0cec8c8df9a47f547300</id>
<content type='text'>
This is basically a combination of the default (dump mode) and -f
(follow mode). Specifying -F makes logread first dump the log buffer and
then immediately start following it.

function                                             old     new   delta
packed_usage                                       30412   30443     +31
logread_main                                         491     497      +6

Signed-off-by: Phil Sutter &lt;phil.sutter@viprinet.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>syslogd: make "reopen log file every second" logic work for multiple logs</title>
<updated>2014-07-03T12:51:47+00:00</updated>
<author>
<name>Joshua Judson Rosen</name>
<email>jrosen@harvestai.com</email>
</author>
<published>2014-07-03T12:51:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=ae57fcad5d36dc2ba00179ef3e44154c10223862'/>
<id>urn:sha1:ae57fcad5d36dc2ba00179ef3e44154c10223862</id>
<content type='text'>
Move last_log_time from a single global to *each logFile_t*
so that we can actually apply the logic to every log-file
in multi-file configurations, rather than working only
for the first file written in each 1-second interval
and then leaving the others connected to possibly wrong files.

Signed-off-by: Joshua Judson Rosen &lt;jrosen@harvestai.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>syslogd: syslogd: don't *decrement* log_file-&gt;size on write failures</title>
<updated>2014-07-02T17:41:41+00:00</updated>
<author>
<name>Joshua Judson Rosen</name>
<email>jrosen@harvestai.com</email>
</author>
<published>2014-07-02T17:41:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e46047aa87c9ec0b8e27d1d4ecfcb3e9798ddb8d'/>
<id>urn:sha1:e46047aa87c9ec0b8e27d1d4ecfcb3e9798ddb8d</id>
<content type='text'>
Even if we fail to write to a log-file, and it's not growing,
it's not *shrinking* either....

Signed-off-by: Joshua Judson Rosen &lt;jrosen@harvestai.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>syslogd: make "-O -" log to stdout</title>
<updated>2014-07-02T13:21:30+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2014-07-02T13:21:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=a28c1b21e1a3770b83fe9b15f26ec50f2e14e7f6'/>
<id>urn:sha1:a28c1b21e1a3770b83fe9b15f26ec50f2e14e7f6</id>
<content type='text'>
function                                             old     new   delta
packed_usage                                       29871   29908     +37
log_locally                                          404     440     +36
syslogd_main                                        1966    1956     -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 73/-10)             Total: 63 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>syslogd: Unify unlink/truncate + unlock log-rotation logic</title>
<updated>2014-06-02T01:11:40+00:00</updated>
<author>
<name>Joshua Judson Rosen</name>
<email>jrosen@harvestai.com</email>
</author>
<published>2014-05-20T05:02:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=9aa6ffb22b712d4e928604e291f954b02237e8cd'/>
<id>urn:sha1:9aa6ffb22b712d4e928604e291f954b02237e8cd</id>
<content type='text'>
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 &lt;jrosen@harvestai.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>syslogd: remember to un-writelock log-files even when called with "-b 0"</title>
<updated>2014-06-02T01:11:39+00:00</updated>
<author>
<name>Joshua Judson Rosen</name>
<email>jrosen@harvestai.com</email>
</author>
<published>2014-05-20T05:02:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b905d6c2eaaf7ad92a50dccc7b91ee19dd9424b7'/>
<id>urn:sha1:b905d6c2eaaf7ad92a50dccc7b91ee19dd9424b7</id>
<content type='text'>
Signed-off-by: Joshua Judson Rosen &lt;jrosen@harvestai.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>syslogd: avoid spurious ftrunctate() calls for "-b 0"</title>
<updated>2014-06-02T01:11:38+00:00</updated>
<author>
<name>Joshua Judson Rosen</name>
<email>jrosen@harvestai.com</email>
</author>
<published>2014-05-20T05:02:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1b90e031c3a3bd6dc5c2a34193ec6e9727b79a39'/>
<id>urn:sha1:1b90e031c3a3bd6dc5c2a34193ec6e9727b79a39</id>
<content type='text'>
Forgetting to re-set log_file-&gt;size after truncating to zero
discards log-data for the next 1 second following an oversize-induced purge,
when we shouldn't necessarily throw that data away.

Signed-off-by: Joshua Judson Rosen &lt;jrosen@harvestai.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Use unsigned printf/scanf conversion where more appropriate</title>
<updated>2013-11-29T15:45:45+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2013-11-29T15:45:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=327f550669a80d72f36bc9e4de619c163aa46eff'/>
<id>urn:sha1:327f550669a80d72f36bc9e4de619c163aa46eff</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>logread: don't call shmdt() before exit, kernel does it for us.</title>
<updated>2013-11-26T11:02:18+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2013-11-26T11:02:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=26ad256bd0badc17d70f347c27cf5ed0699eccc5'/>
<id>urn:sha1:26ad256bd0badc17d70f347c27cf5ed0699eccc5</id>
<content type='text'>
function                                             old     new   delta
logread_main                                         472     466      -6
interrupted                                           20       9     -11
error_exit                                            20       -     -20
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/2 up/down: 0/-37)             Total: -37 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>logread: flush output. closes 6710</title>
<updated>2013-11-26T10:44:27+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2013-11-26T10:44:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=71f6c1aa433fb2be5c3e583ca350c1f9931817a5'/>
<id>urn:sha1:71f6c1aa433fb2be5c3e583ca350c1f9931817a5</id>
<content type='text'>
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
