Wait until child process will be killed
It might take a wile to kill worker after receiving of sighup because
of worker can be busy at the time, so the check of the workers count
can be failed during some amount of time.
Add timeout for checking.
Change-Id: Ibdd29b07960b2f765b03ea9458b6e85cd6786fd0
Closes-bug: #1472531
diff --git a/common/config.py b/common/config.py
index 4f6ea3d..0de6480 100644
--- a/common/config.py
+++ b/common/config.py
@@ -109,6 +109,10 @@
default=120,
help="Timeout in seconds to wait for connectivity to "
"server."),
+ cfg.IntOpt('sighup_timeout',
+ default=30,
+ help="Timeout in seconds to wait for adding or removing child"
+ "process after receiving of sighup signal")
]