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
This commit is contained in:
Harald Welte 2020-02-26 00:13:04 +01:00
parent 5738e579b2
commit 938faa16e4
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}