Revision bd275a93
b/daemons/import-export | ||
---|---|---|
271 | 271 |
timeout = None |
272 | 272 |
|
273 | 273 |
if listen_timeout and not exit_timeout: |
274 |
assert mode == constants.IEM_IMPORT and options.connect_timeout |
|
274 | 275 |
if status_file.GetConnected(): |
275 | 276 |
listen_timeout = None |
276 | 277 |
elif listen_timeout.Remaining() < 0: |
277 |
logging.info("Child process didn't establish connection in time") |
|
278 |
errmsg = ("Child process didn't establish connection in time" |
|
279 |
" (%0.0fs), sending SIGTERM" % options.connect_timeout) |
|
280 |
logging.error(errmsg) |
|
281 |
status_file.AddRecentOutput(errmsg) |
|
282 |
status_file.Update(True) |
|
283 |
|
|
278 | 284 |
child.Kill(signal.SIGTERM) |
279 | 285 |
exit_timeout = \ |
280 | 286 |
locking.RunningTimeout(CHILD_LINGER_TIMEOUT, True) |
Also available in: Unified diff