2011-06-10 Lucas Forschler <lforschler@apple.com>
authorlforschler@apple.com <lforschler@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jun 2011 02:06:42 +0000 (02:06 +0000)
committerlforschler@apple.com <lforschler@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Jun 2011 02:06:42 +0000 (02:06 +0000)
        Reviewed by Stephanie Lewis.

        Script to kill old processes on Mac.
        This matches the windows version.
        https://bugs.webkit.org/show_bug.cgi?id=62479

        * BuildSlaveSupport/mac: Added.
        * BuildSlaveSupport/mac/kill-old-processes: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@88589 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/mac/kill-old-processes [new file with mode: 0755]
Tools/ChangeLog

diff --git a/Tools/BuildSlaveSupport/mac/kill-old-processes b/Tools/BuildSlaveSupport/mac/kill-old-processes
new file mode 100755 (executable)
index 0000000..c6ae037
--- /dev/null
@@ -0,0 +1,50 @@
+#!/usr/bin/python\r
+\r
+# Copyright (C) 2010 Apple Inc.  All rights reserved.\r
+#\r
+# Redistribution and use in source and binary forms, with or without\r
+# modification, are permitted provided that the following conditions\r
+# are met:\r
+#\r
+# 1.  Redistributions of source code must retain the above copyright\r
+#     notice, this list of conditions and the following disclaimer. \r
+# 2.  Redistributions in binary form must reproduce the above copyright\r
+#     notice, this list of conditions and the following disclaimer in the\r
+#     documentation and/or other materials provided with the distribution. \r
+#\r
+# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY\r
+# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\r
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r
+# DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY\r
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\r
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+\r
+import os, sys\r
+\r
+def main():\r
+    tasksToKill = [ "DumpRenderTree", \r
+                                       "make",\r
+                                       "perl", \r
+                                       "per5.12",\r
+                                       "ruby",\r
+                                       "Safari", \r
+                                       "Safari Web Content",\r
+                                       "WebProcess"\r
+                                       "svn", \r
+                                       "WebKitTestRunner",\r
+                                       "WebKitTestRunner Web Content",\r
+                                       "TestWebKitAPI",\r
+                                       "TestWebKitAPI Web Content",\r
+                                       "jsc",\r
+                                       "Problem Reporter",\r
+                                       "WebKitPluginAgen"]\r
+                                       \r
+    for task in tasksToKill:\r
+        os.system("killall -9 -v -m " + task)\r
+\r
+if __name__ == '__main__':\r
+    sys.exit(main())\r
index 6933a4df754feeb0da776ed68e065661cd183a44..1cfeec33fa0ad9b5da664792c3856b31877b4b05 100644 (file)
@@ -1,3 +1,14 @@
+2011-06-10  Lucas Forschler  <lforschler@apple.com>
+
+        Reviewed by Stephanie Lewis.
+
+        Script to kill old processes on Mac.
+        This matches the windows version.
+        https://bugs.webkit.org/show_bug.cgi?id=62479  
+        
+        * BuildSlaveSupport/mac: Added.
+        * BuildSlaveSupport/mac/kill-old-processes: Added.
+
 2011-06-10  Adam Barth  <abarth@webkit.org>
 
         Reviewed by James Robinson.