<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9562">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmocon: Call osmo_init_ignore_signals at startup<br><br>It disables undesirable signals such as SIGPIPE, which exits the program<br>if the client connected to osmocon closes the connection and osmocon<br>writes to the connection fd. After SIGPIPE is disabled, write returns<br>-EPIPE.<br><br>This is required to keep osmocon running for BTS_Tests.ttcn TTCN3 tests.<br><br>Change-Id: Id664ca0fadd3a8b3cf4b78bb868b3d78d2354544<br>---<br>M src/host/osmocon/osmocon.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/62/9562/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c</span><br><span>index 76f6037..be6e244 100644</span><br><span>--- a/src/host/osmocon/osmocon.c</span><br><span>+++ b/src/host/osmocon/osmocon.c</span><br><span>@@ -44,6 +44,7 @@</span><br><span> #include <osmocom/core/serial.h></span><br><span> #include <osmocom/core/talloc.h></span><br><span> #include <osmocom/core/timer.h></span><br><span style="color: hsl(120, 100%, 40%);">+#include <osmocom/core/application.h></span><br><span> </span><br><span> #include <arpa/inet.h></span><br><span> </span><br><span>@@ -1423,6 +1424,8 @@</span><br><span>        dnload.beacon_interval = DEFAULT_BEACON_INTERVAL;</span><br><span>    dnload.do_chainload = 0;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+  osmo_init_ignore_signals();</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>        while ((opt = getopt(argc, argv, "d:hl:p:m:cs:i:v")) != -1) {</span><br><span>              switch (opt) {</span><br><span>               case 'p':</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9562">change 9562</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/9562"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Id664ca0fadd3a8b3cf4b78bb868b3d78d2354544 </div>
<div style="display:none"> Gerrit-Change-Number: 9562 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>