mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
lvmdbusd: Correct conditional for lvm child process running
Poll returns None when process is running, else exit value. If poll returns 0 we will fail to exit the select loop.
This commit is contained in:
parent
db5277c971
commit
37733cd4eb
@ -75,7 +75,7 @@ class LVMShellProxy(object):
|
||||
stderr += read_decoded(self.lvm_shell.stderr)
|
||||
|
||||
# Check to see if the lvm process died on us
|
||||
if self.lvm_shell.poll():
|
||||
if self.lvm_shell.poll() is not None:
|
||||
raise Exception(self.lvm_shell.returncode, "%s" % stderr)
|
||||
|
||||
if stdout.endswith(SHELL_PROMPT):
|
||||
|
Loading…
x
Reference in New Issue
Block a user