Revision 7c4d6c7b lib/http/server.py
b/lib/http/server.py | ||
---|---|---|
31 | 31 |
import time |
32 | 32 |
import signal |
33 | 33 |
|
34 |
from ganeti import constants |
|
35 |
from ganeti import serializer |
|
36 |
from ganeti import utils |
|
37 | 34 |
from ganeti import http |
38 | 35 |
|
39 | 36 |
|
... | ... | |
498 | 495 |
# As soon as too many children run, we'll not respond to new |
499 | 496 |
# requests. The real solution would be to add a timeout for children |
500 | 497 |
# and killing them after some time. |
501 |
pid, status = os.waitpid(0, 0)
|
|
498 |
pid, _ = os.waitpid(0, 0)
|
|
502 | 499 |
except os.error: |
503 | 500 |
pid = None |
504 | 501 |
if pid and pid in self._children: |
Also available in: Unified diff