Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 247161 Details for
Bug 364911
cherrypy doesn't cope with being SIGSTOPped, or suspended/resumed
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
backported fix
python-cherrypy-2.2.1-EINTR.patch (text/plain), 1.31 KB, created by
Nils Philippsen
on 2007-11-03 00:33:02 UTC
(
hide
)
Description:
backported fix
Filename:
MIME Type:
Creator:
Nils Philippsen
Created:
2007-11-03 00:33:02 UTC
Size:
1.31 KB
patch
obsolete
>diff -up cherrypy/_cpwsgiserver.py.EINTR cherrypy/_cpwsgiserver.py >--- cherrypy/_cpwsgiserver.py.EINTR 2006-04-25 03:37:45.000000000 +0200 >+++ cherrypy/_cpwsgiserver.py 2007-11-03 01:14:20.000000000 +0100 >@@ -332,6 +332,22 @@ class CherryPyWSGIServer(object): > # notice keyboard interrupts on Win32, which don't interrupt > # accept() by default > return >+ except socket.error, x: >+ if hasattr(errno, "EINTR") and x.args[0] == errno.EINTR: >+ # I *think* this is right. EINTR should occur when a signal >+ # is received during the accept() call; all docs say retry >+ # the call, and I *think* I'm reading it right that Python >+ # will then go ahead and poll for and handle the signal >+ # elsewhere. See http://www.cherrypy.org/ticket/707. >+ return >+ msg = x.args[1] >+ if msg in ("Bad file descriptor", "Socket operation on non-socket"): >+ # Our socket was closed. >+ return >+ if msg == "Resource temporarily unavailable": >+ # Just try again. See http://www.cherrypy.org/ticket/479. >+ return >+ raise > > def stop(self): > """Gracefully shutdown a server that is serving forever."""
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 364911
: 247161