librewolf: update to 134.0.2-1
[oi-userland.git] / components / cluster / crmsh / patches / 003_crmsh_utils.patch
blob10e6e35432aa6d96714b3a4c59ba0ba08c5ee387
1 --- crmsh-3.0.1/crmsh/utils.py.orig 2017-09-23 22:48:26.794327194 +0000
2 +++ crmsh-3.0.1/crmsh/utils.py 2017-09-23 23:12:54.478826458 +0000
3 @@ -950,8 +950,17 @@
4 except ValueError:
5 return False
8 def is_process(s):
9 + cmd = "ps -e -o pid,comm | /usr/bin/grep -qs '%s'" % s
10 + if options.regression_tests:
11 + print(".EXT", cmd)
12 + proc = subprocess.Popen(cmd,
13 + shell=True,
14 + stdout=subprocess.PIPE)
15 + proc.wait()
16 + return proc.returncode == 0
18 +def is_process0(s):
19 """
20 Returns true if argument is the name of a running process.