You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a bug in utils/server.py that prevents the forking server from running.
The bug is in line 209 and can be easily corrected.
It involves ForkingServer.def _handle_sigchld():
@staticmethod
def _handle_sigchld(signum, unused):
try:
while True:
os.waitpid(-1, os.WNOHANG)
except OSError:
pass
# re-register signal handler (see man signal(2), under Portability)
signal.signal(signal.SIGCHLD, self._handle_sigchld)
The last line uses self, but in a static method self is not available.
Therefore self must be replaced by the class name (ForkingServer).
So the correct version of ForkingServer.def _handle_sigchld() is:
@staticmethod
def _handle_sigchld(signum, unused):
try:
while True:
os.waitpid(-1, os.WNOHANG)
except OSError:
pass
# re-register signal handler (see man signal(2), under Portability)
signal.signal(signal.SIGCHLD, ForkingServer._handle_sigchld)
The text was updated successfully, but these errors were encountered:
Hi,
I don't know if anybody has reported this.
There is a bug in utils/server.py that prevents the forking server from running.
The bug is in line 209 and can be easily corrected.
It involves ForkingServer.def _handle_sigchld():
The last line uses self, but in a static method self is not available.
Therefore self must be replaced by the class name (ForkingServer).
So the correct version of ForkingServer.def _handle_sigchld() is:
The text was updated successfully, but these errors were encountered: