<p>pespin <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/22920">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">logging: gsmtap: Fill PID field for each message<br><br>It was recently discovered that PID field in gsmtap log messages was<br>always set to 0. Before this patch, the field was never being set.<br><br>The approach of this patch is to record the PID of process one, in<br>order to avoid calling getpid() syscall on each<br>log line to be sent. The counterpart of this optimization is that<br>eventual fork() calls would still keep the old incorrect value, but I<br>think nobody can safely assume that fork() is possible once all this<br>kind of infrastructure has already been configured (fork() should only<br>be done really at the start of the program before any osmocom foo is<br>initialized, or to immediatelly call exec()).<br><br>Related: OS#5027<br>Change-Id: I7db00d1810f0860166bffa0bda8566caa82e06a9<br>---<br>M src/logging_gsmtap.c<br>1 file changed, 7 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/20/22920/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/22920">change 22920</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/+/22920"/><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: I7db00d1810f0860166bffa0bda8566caa82e06a9 </div>
<div style="display:none"> Gerrit-Change-Number: 22920 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </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: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>