From 67f27bd94f6c4c1f3e5e1d21bf99dc0a145bfc1c Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 27 Dec 2013 14:31:19 -0500 Subject: [PATCH] qrexec-daemon: make children_count volatile It's decremented in a signal handler --- qrexec/qrexec-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrexec/qrexec-daemon.c b/qrexec/qrexec-daemon.c index 3a50136..2c30d66 100644 --- a/qrexec/qrexec-daemon.c +++ b/qrexec/qrexec-daemon.c @@ -65,7 +65,7 @@ char default_user_keyword[] = "DEFAULT:"; we need to track the number of children, so that excessive QREXEC_EXECUTE_* commands do not fork-bomb dom0 */ -int children_count; +volatile int children_count; void sigusr1_handler(int x) {