<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9165">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Don't register SIGHUP handler without actually handling SIGHUP<br><br>In libosmocore, we normally register a SIGHUP handler for log file<br>rotation.<br><br>However, the osmo-pcu code so far installed its own signal handler,<br>which did exactly nothing in the SIGHUP case.<br><br>Let's fix this by removing SIGHUP handling here, letting libosmocore<br>take care about this.<br><br>Change-Id: Ifa20d79770bc4d88d40601b008a3a2a79d083c04<br>Closes: OS#3265<br>---<br>M src/pcu_main.cpp<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/osmo-pcu refs/changes/65/9165/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp</span><br><span>index 84ade6f..611b2d0 100644</span><br><span>--- a/src/pcu_main.cpp</span><br><span>+++ b/src/pcu_main.cpp</span><br><span>@@ -308,12 +308,12 @@</span><br><span>          return rc;</span><br><span> </span><br><span>       signal(SIGINT, sighandler);</span><br><span style="color: hsl(0, 100%, 40%);">-     signal(SIGHUP, sighandler);</span><br><span>  signal(SIGTERM, sighandler);</span><br><span>         signal(SIGPIPE, sighandler);</span><br><span>         signal(SIGABRT, sighandler);</span><br><span>         signal(SIGUSR1, sighandler);</span><br><span>         signal(SIGUSR2, sighandler);</span><br><span style="color: hsl(120, 100%, 40%);">+  osmo_init_ignore_signals();</span><br><span> </span><br><span>      /* enable realtime priority for us */</span><br><span>        if (rt_prio != -1) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9165">change 9165</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/9165"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ifa20d79770bc4d88d40601b008a3a2a79d083c04 </div>
<div style="display:none"> Gerrit-Change-Number: 9165 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>