summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-02-26 00:13:04 +0100
committerHarald Welte <laforge@osmocom.org>2020-02-26 00:13:04 +0100
commit938faa16e415e240fd07354f8498787da4934e6c (patch)
tree5776e11a467a6d1731922a7fc283c86c55348ef5 /src/host/layer23/src
parent5738e579b29b00b5f23c4762d15912a4cd391fd9 (diff)
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
Diffstat (limited to 'src/host/layer23/src')
-rw-r--r--src/host/layer23/src/common/l1l2_interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/host/layer23/src/common/l1l2_interface.c b/src/host/layer23/src/common/l1l2_interface.c
index c07b0a1d..cd5f9106 100644
--- a/src/host/layer23/src/common/l1l2_interface.c
+++ b/src/host/layer23/src/common/l1l2_interface.c
@@ -62,6 +62,7 @@ static int layer2_read(struct osmo_fd *fd)
if (rc >= 0)
rc = -EIO;
layer2_close((struct osmocom_ms *) fd->data);
+ exit(102);
return rc;
}