<p style="white-space: pre-wrap; word-wrap: break-word;">it might make sense to expose the value of this global flag variable in the fsm VTY code, so that "show fsm" would give you an indication?</p><p>Patch set 7:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +1</span></p><p><a href="https://gerrit.osmocom.org/13392">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13392/4/src/fsm.c">File src/fsm.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/13392/4/src/fsm.c@409">Patch Set #4, Line 409:</a> <code style="font-family:monospace,monospace"> */</code></p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">So after all it seems like a bad idea to do this optimization. We<br>don't want to risk our sanity, right.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">ACK</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/13392/7/src/fsm.c">File src/fsm.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/13392/7/src/fsm.c@105">Patch Set #7, Line 105:</a> <code style="font-family:monospace,monospace">= {};</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not sure you can do this to a __thread variable.  The initializer is likely only applied at compile time and the thread-local copy is generated at runtime? But well, maybe it simply works.  Why do you want to have a {} here anyway? </p><p style="white-space: pre-wrap; word-wrap: break-word;">As per the ABI spec, all 'static' variables are zero-initialized, always.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13392">change 13392</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/13392"/><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-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I8eda67540a1cd444491beb7856b9fcd0a3143b18 </div>
<div style="display:none"> Gerrit-Change-Number: 13392 </div>
<div style="display:none"> Gerrit-PatchSet: 7 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 09 Apr 2019 09:20:11 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>