<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/16144">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">logging/vty: fix: do not close stderr in vty_close()<br><br>Since Icdeaea67a06da3a2f07b252e455629559ecc1829, we use stderr for<br>printing warnings while parsing the VTY configuration files. Make<br>sure we do not close() stderr. Otherwise stderr logging gets broken.<br><br>Change-Id: I6ecc85555d102f5911d50ed5ac54933c766fa84d<br>Fixes: Icdeaea67a06da3a2f07b252e455629559ecc1829<br>---<br>M src/vty/vty.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/44/16144/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/vty/vty.c b/src/vty/vty.c</span><br><span>index 3357d5a..cd252ad 100644</span><br><span>--- a/src/vty/vty.c</span><br><span>+++ b/src/vty/vty.c</span><br><span>@@ -231,7 +231,7 @@</span><br><span>   vector_unset(vtyvec, vty->fd);</span><br><span> </span><br><span>        /* Close socket. */</span><br><span style="color: hsl(0, 100%, 40%);">-     if (vty->fd > 0) {</span><br><span style="color: hsl(120, 100%, 40%);">+      if (vty->fd > 0 && vty->fd != fileno(stderr)) {</span><br><span>             close(vty->fd);</span><br><span>           vty->fd = -1;</span><br><span>     }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/16144">change 16144</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/+/16144"/><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: I6ecc85555d102f5911d50ed5ac54933c766fa84d </div>
<div style="display:none"> Gerrit-Change-Number: 16144 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>