aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_hack.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-11-24 20:06:41 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-12-06 04:25:05 +0100
commitf49fac278544f321456dcf96912b68059ad8d1af (patch)
tree888bf4367a12b8bde85d299d3da541e89fe43abe /openbsc/src/bsc_hack.c
parentad69d7f8b2f4dff55b6244cad506113f33eed65c (diff)
[bsc_hack] Ignore the sigpipe...
We might read or write on the OML link when the BTS is reset and will get SIGPIPE interrupt and be gone... Just ignore the SIGPIPE we will get the "exception" on the next run of bsc_select and kill the (old) OML link.
Diffstat (limited to 'openbsc/src/bsc_hack.c')
-rw-r--r--openbsc/src/bsc_hack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c
index ee37a6115..0033e1c50 100644
--- a/openbsc/src/bsc_hack.c
+++ b/openbsc/src/bsc_hack.c
@@ -193,6 +193,7 @@ int main(int argc, char **argv)
signal(SIGINT, &signal_handler);
signal(SIGABRT, &signal_handler);
signal(SIGUSR1, &signal_handler);
+ signal(SIGPIPE, SIG_IGN);
while (1) {
bsc_upqueue(bsc_gsmnet);