This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-remsim/+/17216 ) Change subject: client: user_shell.c: fflush() after writes to stdout ...................................................................... client: user_shell.c: fflush() after writes to stdout This is useful if we have external programs interfacing with stdin/stdout of osmo-remsim-client-shell. We don't want that output to hang in some buffer indefinitely, but rather have the lines flushed immediately. Change-Id: I6879f9f186ce87e0644b3d7868fc5ea031b82c62 --- M src/client/user_shell.c 1 file changed, 2 insertions(+), 0 deletions(-) Approvals: laforge: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/client/user_shell.c b/src/client/user_shell.c index d5cad7b..11601d6 100644 --- a/src/client/user_shell.c +++ b/src/client/user_shell.c @@ -23,6 +23,7 @@ const struct TpduCardToModem *card2modem = &pdu->msg.choice.tpduCardToModem; printf("R-APDU: %s\n", osmo_hexdump(card2modem->data.buf, card2modem->data.size)); + fflush(stdout); return 0; } @@ -36,6 +37,7 @@ printf("SET_ATR: %s\n", osmo_hexdump(pdu->msg.choice.setAtrReq.atr.buf, pdu->msg.choice.setAtrReq.atr.size)); + fflush(stdout); resp = rspro_gen_SetAtrRes(ResultCode_ok); if (!resp) -- To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/17216 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-remsim Gerrit-Branch: master Gerrit-Change-Id: I6879f9f186ce87e0644b3d7868fc5ea031b82c62 Gerrit-Change-Number: 17216 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200221/a6d2dc17/attachment.htm>