[4.1] edc2628 These programs should respect SIGHUP and die, rather pointlessly eat all CPU time.

Lasse Karstensen lkarsten at varnish-software.com
Tue Jun 14 11:19:09 CEST 2016


commit edc26280ee3222d8eda045b797c7f6b669602b06
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Apr 8 22:16:34 2016 +0000

    These programs should respect SIGHUP and die, rather pointlessly
    eat all CPU time.

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 9eab9bf..f279dc3 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -294,7 +294,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 static int __match_proto__(VUT_cb_f)
 sighup(void)
 {
-	return (1);
+	exit(1);
 }
 
 static void *
diff --git a/bin/varnishtop/varnishtop.c b/bin/varnishtop/varnishtop.c
index f56b9a7..9c555cc 100644
--- a/bin/varnishtop/varnishtop.c
+++ b/bin/varnishtop/varnishtop.c
@@ -183,7 +183,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 static int __match_proto__(VUT_cb_f)
 sighup(void)
 {
-	return (1);
+	exit (1);
 }
 
 static void



More information about the varnish-commit mailing list