#70 Avoid exception on server termination

closed-accepted
nobody
WebKit (45)
5
2005-02-11
2005-02-08
Ken Lalonde
No

When the ThreadedAppServer is terminated by signal SIGINT,
the select.select() call raises the exception:
error: (9, 'Bad file descriptor')

likely because the associated file descriptor has been
closed.
The patch below simply ends the select loop in this case,
avoiding a spurious traceback.

Discussion

  • Ken Lalonde
    Ken Lalonde
    2005-02-08

    Patch to ThreadedAppServer.py, relative to today's CVS

     
    Attachments
  • Ken Lalonde
    Ken Lalonde
    2005-02-11

    • status: open --> closed
     
  • Ken Lalonde
    Ken Lalonde
    2005-02-11

    • status: closed --> closed-accepted
     
  • Ken Lalonde
    Ken Lalonde
    2005-02-11

    Logged In: YES
    user_id=203927

    Patch applied.