So far, this just wraps self.proc.poll(). It's intended to provide a way
for tasks to know if their daemons are even running.
Signed-off-by: Zack Cerza <zack@redhat.com>
finally:
self.proc = None
+ def check_status(self):
+ """
+ Check to see if the process has exited.
+
+ :returns: The exit status, if any
+ :raises: CommandFailedError, if the process was run with
+ check_status=True
+ """
+ return self.proc.poll()
+
class DaemonGroup(object):
"""