<p><a href="https://gerrit.osmocom.org/c/osmo-ggsn/+/17253">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/osmo-ggsn/+/17253/1/lib/netns.c">File lib/netns.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/osmo-ggsn/+/17253/1/lib/netns.c@53">Patch Set #1, Line 53:</a> <code style="font-family:monospace,monospace"> sigfillset(&intmask);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">no return checking, but then... should those ever fail?  one might also wrap them in OSMO_ASSERT() calls if proper error handling is too much?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-ggsn/+/17253/1/lib/netns.c@78">Patch Set #1, Line 78:</a> <code style="font-family:monospace,monospace">        setns(default_nsfd, CLONE_NEWNET);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think at least here the setns() call should be skipped if the open fails.  Yes, we return 'rc' below, but I guess we should return early on failure.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-ggsn/+/17253/1/lib/netns.c@96">Patch Set #1, Line 96:</a> <code style="font-family:monospace,monospace">       sk = socket(domain, type, protocol);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same here with the socket...</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ggsn/+/17253">change 17253</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/osmo-ggsn/+/17253"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ggsn </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Idd0ad8fa9c8e7ba0aeec1b52947598d4d297b620 </div>
<div style="display:none"> Gerrit-Change-Number: 17253 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 26 Feb 2020 08:45:03 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>