Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2ca477c

Browse files
committed
Fix checking for duplicate processes
1 parent29e23ce commit2ca477c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎umonitor‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/envpython
1+
#!/usr/bin/python
22

33
importlogging
44
importargparse
@@ -205,7 +205,7 @@ class Umonitor(Screen):
205205

206206
def_prevent_duplicate_running(self):
207207
withopen(os.devnull,"w")asdevnull_fh:
208-
pgrep_out=subprocess.run(["pgrep","-c","umon2.py"],capture_output=True)
208+
pgrep_out=subprocess.run(["pgrep","-c","umonitor"],capture_output=True)
209209
# logging.debug(float(pgrep_out.stdout.decode("UTF-8")))
210210
iffloat(pgrep_out.stdout.decode("UTF-8"))>1:
211211
raiseException("umonitor is already running. Please kill that process and try again.")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp