qrexec-daemon: make children_count volatile

It's decremented in a signal handler
This commit is contained in:
Vincent Penquerc'h 2013-12-27 14:31:19 -05:00 committed by Marek Marczykowski-Górecki
parent 97c7c97420
commit 67f27bd94f

View File

@ -65,7 +65,7 @@ char default_user_keyword[] = "DEFAULT:";
we need to track the number of children, so that excessive QREXEC_EXECUTE_* we need to track the number of children, so that excessive QREXEC_EXECUTE_*
commands do not fork-bomb dom0 commands do not fork-bomb dom0
*/ */
int children_count; volatile int children_count;
void sigusr1_handler(int x) void sigusr1_handler(int x)
{ {