[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.
This commit is contained in:
Holger Hans Peter Freyther
2009-11-24 20:06:41 +01:00
parent ec7be0c969
commit 0d9ed87d5c
2 changed files with 2 additions and 0 deletions

View File

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

View File

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