Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/9165
Change subject: Don't register SIGHUP handler without actually handling SIGHUP ...................................................................... Don't register SIGHUP handler without actually handling SIGHUP In libosmocore, we normally register a SIGHUP handler for log file rotation. However, the osmo-pcu code so far installed its own signal handler, which did exactly nothing in the SIGHUP case. Let's fix this by removing SIGHUP handling here, letting libosmocore take care about this. Change-Id: Ifa20d79770bc4d88d40601b008a3a2a79d083c04 Closes: OS#3265 --- M src/pcu_main.cpp 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/65/9165/1 diff --git a/src/pcu_main.cpp b/src/pcu_main.cpp index 84ade6f..611b2d0 100644 --- a/src/pcu_main.cpp +++ b/src/pcu_main.cpp @@ -308,12 +308,12 @@ return rc; signal(SIGINT, sighandler); - signal(SIGHUP, sighandler); signal(SIGTERM, sighandler); signal(SIGPIPE, sighandler); signal(SIGABRT, sighandler); signal(SIGUSR1, sighandler); signal(SIGUSR2, sighandler); + osmo_init_ignore_signals(); /* enable realtime priority for us */ if (rt_prio != -1) { -- To view, visit https://gerrit.osmocom.org/9165 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ifa20d79770bc4d88d40601b008a3a2a79d083c04 Gerrit-Change-Number: 9165 Gerrit-PatchSet: 1 Gerrit-Owner: Harald Welte <lafo...@gnumonks.org>