aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-10-19 10:47:41 +0200
committerHarald Welte <laforge@gnumonks.org>2016-10-19 10:55:25 +0200
commit2ac78497ddb0320f8b6c3f38f1acd0a0b70dcf00 (patch)
treed946e51ac497a1596f2f12d53fde540772ba9d6a /src/storage.c
parentdf7a306df5a1cb41ad42c303001f24a06f28458e (diff)
e1_recorder: propagate errors to main, where we exit() in case of failing to open file
Diffstat (limited to 'src/storage.c')
-rw-r--r--src/storage.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/storage.c b/src/storage.c
index d18f8cd..0a926e4 100644
--- a/src/storage.c
+++ b/src/storage.c
@@ -83,7 +83,9 @@ int e1frame_store(struct e1inp_ts *ts, struct msgb *msg, enum osmo_e1cap_capture
h->capture_mode = mode;
h->flags = 0;
- storage_reopen_if_needed();
+ rc = storage_reopen_if_needed();
+ if (rc < 0)
+ return rc;
rc = writev(g_out_fd, iov, ARRAY_SIZE(iov));
if (rc < 0)