Skip to content

Instantly share code, notes, and snippets.

@lauromoura
Created September 9, 2020 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lauromoura/8cc8a7cfb0b830dcc103d6275ad026cc to your computer and use it in GitHub Desktop.
Save lauromoura/8cc8a7cfb0b830dcc103d6275ad026cc to your computer and use it in GitHub Desktop.
kill-old-processes fix
diff --git a/Tools/BuildSlaveSupport/kill-old-processes b/Tools/BuildSlaveSupport/kill-old-processes
index 880258d1c324..d831e3b5be45 100755
--- a/Tools/BuildSlaveSupport/kill-old-processes
+++ b/Tools/BuildSlaveSupport/kill-old-processes
@@ -180,7 +180,7 @@ def main(user=None):
builddir_bin = "WebKitBuild/Release/bin" if os.path.isdir("WebKitBuild/Release/bin") else "WebKitBuild/Debug/bin"
for task in tasksToKill + taskToKillUnix + listAllWebKitPrograms(builddir_bin):
os.system("killall -9 -v " + task)
- os.system("ps aux | grep -P '.+/python .+(run_webkit_tests|run-webkit-tests|mod_pywebsocket)' | grep -v grep | awk '{print $2}' | xargs kill")
+ os.system("ps aux | grep -P '.+/python .+(run_webkit_tests|run-webkit-tests|mod_pywebsocket)' | grep -v grep | awk '{print $2}' | xargs -r kill")
removeOrphanShmSegments()
else:
sys.exit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment