ForkingServer issue #7

tomerfiliba opened this Issue Mar 2, 2011 · 1 comment


None yet

1 participant


a better solution would be to remove change @staticmethod to @classmethod and rename "self" as "cls",
but any working resolution is fine for now :)
i will release 3.0.8 in the summer, after my exams, to resolve all these little issues.

btw, if someone would volunteer to fix these quirks, i'll be glad to add him as a committer to github and sourceforge.


An NCO and a Gentleman

  • hide quoted text -

On Fri, May 7, 2010 at 17:30, Tim Arnold wrote:
I guess you don't want a patch since it's already fixed in
development. I'm not sure your fix is the same as mine since I don't
have a deep understanding of the code. But just in case someone wants
it, this worked for me and my server no longer dies.

I changed the _handle_sigchld method in utils/ to no longer
be a static method. It now looks like this:

#    @staticmethod
   def _handle_sigchld(self,signum, unused):
           while True:
               os.waitpid(-1, os.WNOHANG)
       except OSError:
       # re-register signal handler (see man signal(2), under
       signal.signal(signal.SIGCHLD, self._handle_sigchld)

Commenting out the @static_method decorator and adding self to the
As I said, everything seems to be working fine now.

any comments, suggestions are very welcome.

On May 5, 3:53 pm, Tim Arnold wrote:

On May 5, 3:39 pm, Alex Grönholm wrote:

5.5.2010 21:30, Tim Arnold kirjoitti:> Hi,

I see in a few past posts that this error has been fixed in
development, but there has not yet been released. The traceback is
below. Is there a patch available, or could one be made available to
get this fixed? Or maybe a new release is coming soon?

I asked Tomer to release an updated version, but he hasn't acted on it.
The 3.5.x series isn't going to come out yet either due to me being busy
finishing my thesis.

Thanks for letting me know, I'll see if I can debug it myself.

many thanks,
--Tim Arnold

File "", line 41, in
File "/usr/local/lib/python2.7/site-packages/rpyc/utils/",
line 167, in start
File "/usr/local/lib/python2.7/site-packages/rpyc/utils/",
line 74, in accept
sock, (h, p) = self.listener.accept()
File "/usr/local/lib/python2.7/site-packages/rpyc/utils/",
line 209, in _handle_sigchld
signal.signal(signal.SIGCHLD, self._handle_sigchld)
NameError: global name 'self' is not defined


fixes a28b882; closed by 7eb48a4; closed by 7eb48a4; closed by 7eb48a4; closed by 7eb48a4; closed by 7eb48a4; closed by 7eb48a4;

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment