Change in osmocom-bb[master]: osmocon: Call osmo_init_ignore_signals at startup

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Jun 13 11:17:13 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/9562 )

Change subject: osmocon: Call osmo_init_ignore_signals at startup
......................................................................

osmocon: Call osmo_init_ignore_signals at startup

It disables undesirable signals such as SIGPIPE, which exits the program
if the client connected to osmocon closes the connection and osmocon
writes to the connection fd. After SIGPIPE is disabled, write returns
-EPIPE.

This is required to keep osmocon running for BTS_Tests.ttcn TTCN3 tests.

Change-Id: Id664ca0fadd3a8b3cf4b78bb868b3d78d2354544
---
M src/host/osmocon/osmocon.c
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved



diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c
index 76f6037..be6e244 100644
--- a/src/host/osmocon/osmocon.c
+++ b/src/host/osmocon/osmocon.c
@@ -44,6 +44,7 @@
 #include <osmocom/core/serial.h>
 #include <osmocom/core/talloc.h>
 #include <osmocom/core/timer.h>
+#include <osmocom/core/application.h>
 
 #include <arpa/inet.h>
 
@@ -1423,6 +1424,8 @@
 	dnload.beacon_interval = DEFAULT_BEACON_INTERVAL;
 	dnload.do_chainload = 0;
 
+	osmo_init_ignore_signals();
+
 	while ((opt = getopt(argc, argv, "d:hl:p:m:cs:i:v")) != -1) {
 		switch (opt) {
 		case 'p':

-- 
To view, visit https://gerrit.osmocom.org/9562
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Id664ca0fadd3a8b3cf4b78bb868b3d78d2354544
Gerrit-Change-Number: 9562
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180613/b0291f30/attachment.htm>


More information about the gerrit-log mailing list