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/+/19315 ) Change subject: remsim-client-shell: Terminate if STDIN has been closed ...................................................................... remsim-client-shell: Terminate if STDIN has been closed Change-Id: I39937224b06b6bb6f23c002023141882797ee6a6 --- M src/client/user_shell.c 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: fixeria: Looks good to me, but someone else must approve laforge: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/client/user_shell.c b/src/client/user_shell.c index c8f1b5f..b22ee9a 100644 --- a/src/client/user_shell.c +++ b/src/client/user_shell.c @@ -134,6 +134,10 @@ rc = read(ofd->fd, cur, msgb_tailroom(ss->rx_msg)); if (rc < 0) return rc; + if (rc == 0) { + fprintf(stderr, "STDIN was closed, terminating"); + exit(0); + } msgb_put(ss->rx_msg, rc); for (i = 0; i < rc; i++) { -- To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/19315 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-remsim Gerrit-Branch: master Gerrit-Change-Id: I39937224b06b6bb6f23c002023141882797ee6a6 Gerrit-Change-Number: 19315 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de> 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/20200719/26a14df6/attachment.htm>