]> Sergey Matveev's repositories - public-inbox.git/commit
sigfd: simplify loop and improve documentation
authorEric Wong <e@yhbt.net>
Sun, 12 Jan 2020 21:17:56 +0000 (21:17 +0000)
committerEric Wong <e@yhbt.net>
Mon, 13 Jan 2020 23:21:32 +0000 (23:21 +0000)
commit8cb2a4307b20868266c838fc940bc8a57bca968a
tree3e7f2ea32b6fc8917c9b15b8194433440d82ab3b
parent8775167475d8bfc25d532b777147a8b1ef1cd99b
sigfd: simplify loop and improve documentation

We can use the return value of sysread to bound our loop instead
of repeatedly shortening the string.  Furthermore add some
comments which can be easily checked against the signalfd(2)
manpage.
lib/PublicInbox/Sigfd.pm