Commit 3fe028b9 authored by Paul Rich's avatar Paul Rich
Browse files

Fixing a potential startup error in the base forker

Old versions of the forker do not have use_stdout_string that can casue
_wait() to fail.  Getting out of this would require deleting the
statefile and restarting clean.

To prevent that, the startup is being modified to add those key
variables and initalizing them to being "unused".
parent 87c014eb
......@@ -167,6 +167,9 @@ class BaseChild (object):
self.stderr_file = None
self._cobalt_log_file = None
self._cobalt_log_failed = False
self.use_stdout_string = state.get('stdout_string', False)
self.stdin_string = state.get('stdin_string', None)
self.stdout_string = state.get('stdout_string', '')
if not self.complete:
self.lost_child = True
self.return_output = False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment