aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/ltq-vdsl-vr9-app/patches/201-sigterm.patch
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2022-08-23 15:18:49 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-09-17 17:39:23 +0200
commit33e2115fe449d1b9e97ce8c5be96f580442fd3d9 (patch)
treeeafb402a2ebee7a739bbb7ad8f08672533cab241 /package/network/config/ltq-vdsl-vr9-app/patches/201-sigterm.patch
parent07536cff513f38ea167c3b1d870d27f1d71a292d (diff)
downloadupstream-33e2115fe449d1b9e97ce8c5be96f580442fd3d9.tar.gz
upstream-33e2115fe449d1b9e97ce8c5be96f580442fd3d9.tar.bz2
upstream-33e2115fe449d1b9e97ce8c5be96f580442fd3d9.zip
ltq-vdsl-app: rename to ltq-vdsl-vr9-app
This matches the scheme used by other target packages and will avoid confusion with any future version. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'package/network/config/ltq-vdsl-vr9-app/patches/201-sigterm.patch')
-rw-r--r--package/network/config/ltq-vdsl-vr9-app/patches/201-sigterm.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/network/config/ltq-vdsl-vr9-app/patches/201-sigterm.patch b/package/network/config/ltq-vdsl-vr9-app/patches/201-sigterm.patch
new file mode 100644
index 0000000000..4e97835983
--- /dev/null
+++ b/package/network/config/ltq-vdsl-vr9-app/patches/201-sigterm.patch
@@ -0,0 +1,19 @@
+--- a/src/dsl_cpe_control.c
++++ b/src/dsl_cpe_control.c
+@@ -6504,7 +6504,7 @@ DSL_CPE_STATIC void DSL_CPE_Termination
+ /* ignore the signal, we'll handle by ourself */
+ signal (sig, SIG_IGN);
+
+- if (sig == SIGINT)
++ if (sig == SIGINT || sig == SIGTERM)
+ {
+ DSL_CCA_DEBUG(DSL_CCA_DBG_MSG, (DSL_CPE_PREFIX "terminated" DSL_CPE_CRLF));
+ DSL_CPE_Termination ();
+@@ -6803,6 +6803,7 @@ DSL_int_t dsl_cpe_daemon (
+
+ #ifndef RTEMS
+ signal (SIGINT, DSL_CPE_TerminationHandler);
++ signal (SIGTERM, DSL_CPE_TerminationHandler);
+ #endif /* RTEMS*/
+
+ /* Open DSL_CPE_MAX_DSL_ENTITIES devices*/