summaryrefslogtreecommitdiffstats
path: root/Tools/Scripts/webkitpy/layout_tests/port/server_process.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Scripts/webkitpy/layout_tests/port/server_process.py')
-rw-r--r--Tools/Scripts/webkitpy/layout_tests/port/server_process.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/Scripts/webkitpy/layout_tests/port/server_process.py b/Tools/Scripts/webkitpy/layout_tests/port/server_process.py
index 5a0a40c..7974f94 100644
--- a/Tools/Scripts/webkitpy/layout_tests/port/server_process.py
+++ b/Tools/Scripts/webkitpy/layout_tests/port/server_process.py
@@ -115,7 +115,11 @@ class ServerProcess:
if is not already running."""
if not self._proc:
self._start()
- self._proc.stdin.write(input)
+ try:
+ self._proc.stdin.write(input)
+ except IOError, e:
+ self.stop()
+ self.crashed = True
def read_line(self, timeout):
"""Read a single line from the subprocess, waiting until the deadline.