<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-remsim/+/17216">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">client: user_shell.c: fflush() after writes to stdout<br><br>This is useful if we have external programs interfacing with<br>stdin/stdout of osmo-remsim-client-shell.  We don't want that output<br>to hang in some buffer indefinitely, but rather have the lines flushed<br>immediately.<br><br>Change-Id: I6879f9f186ce87e0644b3d7868fc5ea031b82c62<br>---<br>M src/client/user_shell.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/16/17216/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/client/user_shell.c b/src/client/user_shell.c</span><br><span>index d5cad7b..11601d6 100644</span><br><span>--- a/src/client/user_shell.c</span><br><span>+++ b/src/client/user_shell.c</span><br><span>@@ -23,6 +23,7 @@</span><br><span>         const struct TpduCardToModem *card2modem = &pdu->msg.choice.tpduCardToModem;</span><br><span> </span><br><span>      printf("R-APDU: %s\n", osmo_hexdump(card2modem->data.buf, card2modem->data.size));</span><br><span style="color: hsl(120, 100%, 40%);">+    fflush(stdout);</span><br><span> </span><br><span>  return 0;</span><br><span> }</span><br><span>@@ -36,6 +37,7 @@</span><br><span> </span><br><span>       printf("SET_ATR: %s\n", osmo_hexdump(pdu->msg.choice.setAtrReq.atr.buf,</span><br><span>                                              pdu->msg.choice.setAtrReq.atr.size));</span><br><span style="color: hsl(120, 100%, 40%);">+ fflush(stdout);</span><br><span> </span><br><span>  resp = rspro_gen_SetAtrRes(ResultCode_ok);</span><br><span>   if (!resp)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-remsim/+/17216">change 17216</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/osmo-remsim/+/17216"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-remsim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6879f9f186ce87e0644b3d7868fc5ea031b82c62 </div>
<div style="display:none"> Gerrit-Change-Number: 17216 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>