diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-11-24 20:06:41 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-12-06 04:32:27 +0100 |
commit | 0d9ed87d5c7d5b6e21dc3bbb282e215068742566 (patch) | |
tree | 865c58f2a5d0b1edfeb8de37a63242400ccd28b5 /openbsc | |
parent | ec7be0c969faee601ae9cb96ceba8add29fc0eb7 (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')
-rw-r--r-- | openbsc/src/bsc_hack.c | 1 | ||||
-rw-r--r-- | openbsc/src/bsc_msc_ip.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c index c256f864e..57db51552 100644 --- a/openbsc/src/bsc_hack.c +++ b/openbsc/src/bsc_hack.c @@ -191,6 +191,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); diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c index da7a1be39..f44974838 100644 --- a/openbsc/src/bsc_msc_ip.c +++ b/openbsc/src/bsc_msc_ip.c @@ -806,6 +806,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_select_main(0); |