diff options
author | Tony Asleson <tasleson@redhat.com> | 2022-05-25 15:51:14 -0500 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2022-06-30 10:55:16 -0500 |
commit | 37733cd4eb5116db371ac1ae6e971e3c336c3ddb (patch) | |
tree | ef558db73efe60d465b77b74bc5d6aa9d534a4e9 /daemons | |
parent | db5277c97155632ce83e1125e348eda97c871968 (diff) | |
download | lvm2-37733cd4eb5116db371ac1ae6e971e3c336c3ddb.tar.gz |
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.
Diffstat (limited to 'daemons')
-rw-r--r-- | daemons/lvmdbusd/lvm_shell_proxy.py.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/lvmdbusd/lvm_shell_proxy.py.in b/daemons/lvmdbusd/lvm_shell_proxy.py.in index 7816daa8b..78fe1e422 100644 --- a/daemons/lvmdbusd/lvm_shell_proxy.py.in +++ b/daemons/lvmdbusd/lvm_shell_proxy.py.in @@ -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): |