Skip to content

Commit 66af40d

Browse files
author
iamsajjad
committed
kill subprocess after it finished
1 parent 61fe260 commit 66af40d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickping/quickping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def pinger(self, thread, queue):
7373
self.logs.append(log)
7474
print(log)
7575

76-
ret = subprocess.call("ping -c 1 {0}".format(address),
76+
ret = subprocess.call("exec ping -c 1 {0}".format(address),
7777
shell=True,
7878
stdout=open('/dev/null', 'w'),
7979
stderr=subprocess.STDOUT)

0 commit comments

Comments
 (0)