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
Tue Feb 25 23:15:59 UTC 2020


laforge has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/63/17263/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200225/64e812b8/attachment.htm>


More information about the gerrit-log mailing list