Title: [212305] trunk/Tools
Revision
212305
Author
[email protected]
Date
2017-02-14 09:51:25 -0800 (Tue, 14 Feb 2017)

Log Message

Unreviewed build-fix after r212297.

* Scripts/webkitpy/port/simulator_process.py:
(SimulatorProcess.stop): Handle case where there is no process to kill.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (212304 => 212305)


--- trunk/Tools/ChangeLog	2017-02-14 17:29:35 UTC (rev 212304)
+++ trunk/Tools/ChangeLog	2017-02-14 17:51:25 UTC (rev 212305)
@@ -1,3 +1,10 @@
+2017-02-14  Jonathan Bedard  <[email protected]>
+
+        Unreviewed build-fix after r212297.
+
+        * Scripts/webkitpy/port/simulator_process.py:
+        (SimulatorProcess.stop): Handle case where there is no process to kill.
+
 2017-02-14  Carlos Alberto Lopez Perez  <[email protected]>
 
         [CMake] build-webkit should print the cmake command executed

Modified: trunk/Tools/Scripts/webkitpy/port/simulator_process.py (212304 => 212305)


--- trunk/Tools/Scripts/webkitpy/port/simulator_process.py	2017-02-14 17:29:35 UTC (rev 212304)
+++ trunk/Tools/Scripts/webkitpy/port/simulator_process.py	2017-02-14 17:51:25 UTC (rev 212305)
@@ -130,5 +130,9 @@
         self._proc = SimulatorProcess.Popen(self._pid, stdin, stdout, stderr)
 
     def stop(self, timeout_secs=3.0):
-        os.kill(self._pid, signal.SIGTERM)
+        try:
+            os.kill(self._pid, signal.SIGTERM)
+        except OSError as err:
+            assert err.errno == errno.ESRCH
+            pass
         super(SimulatorProcess, self).stop(timeout_secs)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to