Change in osmocom-bb[master]: layer23: Terminate process if L2 socket fails/dissappears

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.org
Wed Feb 26 08:41:48 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/17263 )

Change subject: layer23: Terminate process if L2 socket fails/dissappears
......................................................................

layer23: Terminate process if L2 socket fails/dissappears

We don't recover from this situation at all, so it's best to
terminate the process.

Change-Id: I487d18e4afe2cae9f777a30864e680b5dc821fc1
---
M src/host/layer23/src/common/l1l2_interface.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, but someone else must approve
  laforge: Looks good to me, approved



diff --git a/src/host/layer23/src/common/l1l2_interface.c b/src/host/layer23/src/common/l1l2_interface.c
index c07b0a1..cd5f910 100644
--- a/src/host/layer23/src/common/l1l2_interface.c
+++ b/src/host/layer23/src/common/l1l2_interface.c
@@ -62,6 +62,7 @@
 		if (rc >= 0)
 			rc = -EIO;
 		layer2_close((struct osmocom_ms *) fd->data);
+		exit(102);
 		return rc;
 	}
 

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I487d18e4afe2cae9f777a30864e680b5dc821fc1
Gerrit-Change-Number: 17263
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
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/20200226/0f8a28c0/attachment.htm>


More information about the gerrit-log mailing list