<p style="white-space: pre-wrap; word-wrap: break-word;">I wonder where why is this extra structure needed at all. sigset is only used during setup, and even that can be easily done manually with the generic ofd...</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/17853">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/17853/1/include/osmocom/core/select.h">File include/osmocom/core/select.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/17853/1/include/osmocom/core/select.h@74">Patch Set #1, Line 74:</a> <code style="font-family:monospace,monospace">struct signalfd_siginfo;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">osmo_signalfd_siginfo?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/17853/1/src/select.c">File src/select.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/17853/1/src/select.c@435">Patch Set #1, Line 435:</a> <code style="font-family:monospace,monospace">     fd = signalfd(-1, &osfd->sigset, O_NONBLOCK);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">are you sure O_NONBLOCK is correct here? I don't find it in "man signalfd", but there's SFD_NONBLOCK</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/17853/1/src/select.c@445">Patch Set #1, Line 445:</a> <code style="font-family:monospace,monospace">return NULL;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Shouldn't we free() osfd here?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">agree with fixeria</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/17853">change 17853</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/17853"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If8d89dd1f6989e1cd9b9367fad954d65f91ada30 </div>
<div style="display:none"> Gerrit-Change-Number: 17853 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 17 Apr 2020 22:25:08 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>