Changeset 282091 in webkit


Ignore:
Timestamp:
Sep 7, 2021, 9:37:33 AM (4 years ago)
Author:
Jonathan Bedard
Message:

Exception in run-webkit-tests: Bad file descriptor (Part 1)
https://bugs.webkit.org/show_bug.cgi?id=229994

Reviewed by Aakash Jain.

  • Scripts/webkitpy/port/server_process.py:

(ServerProcess.write): Catch "Bad file descriptor."
(ServerProcess._wait_for_data_and_update_buffers_using_select): Ditto.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r282087 r282091  
     12021-09-07  Jonathan Bedard  <jbedard@apple.com>
     2
     3        Exception in run-webkit-tests: Bad file descriptor (Part 1)
     4        https://bugs.webkit.org/show_bug.cgi?id=229994
     5
     6        Reviewed by Aakash Jain.
     7
     8        * Scripts/webkitpy/port/server_process.py:
     9        (ServerProcess.write): Catch "Bad file descriptor."
     10        (ServerProcess._wait_for_data_and_update_buffers_using_select): Ditto.
     11
    1122021-09-07  Jonathan Bedard  <jbedard@apple.com>
    213
  • trunk/Tools/Scripts/webkitpy/port/server_process.py

    r273017 r282091  
    185185            self._proc.stdin.write(string_utils.encode(bytes))
    186186            self._proc.stdin.flush()
    187         except (IOError, ValueError):
     187        except (IOError, OSError, ValueError):
    188188            self.stop(0.0)
    189189            # stop() calls _reset(), so we have to set crashed to True after calling stop()
     
    285285        try:
    286286            read_fds, _, _ = select.select(select_fds, [], select_fds, max(deadline - time.time(), 0))
     287        except OSError:
     288            # FIXME: https://bugs.webkit.org/show_bug.cgi?id=229994
     289            _log.debug('Caught OSError for {}, continuing'.format(self.pid()))
     290            return
    287291        except select.error as e:
    288292            # We can ignore EINVAL since it's likely the process just crashed and we'll
     
    313317                    self._crashed = True
    314318                self._error += data
     319        except OSError:
     320            # FIXME: https://bugs.webkit.org/show_bug.cgi?id=229994
     321            _log.debug('Caught OSError for {}, continuing'.format(self.pid()))
     322            pass
    315323        except IOError:
    316324            # We can ignore the IOErrors because we will detect if the subporcess crashed
Note: See TracChangeset for help on using the changeset viewer.