Skip to content

Commit f3b03f4

Browse files
committed
removed unnecessary pid retrieval process for linux
1 parent 9f9fe91 commit f3b03f4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

install.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,7 @@ def run_server():
2828
# emulating /dev/null
2929
dn = open(os.devnull, 'wb')
3030
process = subprocess.Popen(webserver_cmd, stdout=dn, stderr=dn)
31-
32-
# we need this for linux because on linux process.pid is not accurate.
33-
# it provides somewhat arbitrary values.
34-
if not IS_WIN and not IS_DARWIN:
35-
del webserver_cmd[0]
36-
get_pid = ['pidof', '-s']
37-
get_pid.extend(webserver_cmd)
38-
return int(subprocess.check_output(get_pid))
39-
else:
40-
return process.pid
31+
return process.pid
4132

4233

4334
def set_pid(pid):

0 commit comments

Comments
 (0)