+# It can be applied on Pymacs 0.23 or 0.24-beta1. The problem is
+# signal.signal() is called twice for signal.SIGINT. You can use
+# ``patch -p1 < signal_recursion.patch`` in the extracted directory.
+ self.original_handler = signal.signal(
+ signal.SIGINT, self.interrupt_handler)
+- for counter in range(1, signal.NSIG):
+- if counter == signal.SIGINT:
+- self.original_handler = signal.signal(counter,
+- # The following few lines of code are reported to create IO
+- # problems within the Pymacs helper itself, so I merely comment
+- # them for now, until we know better.
+- # signal.signal(counter, self.generic_handler)
+- # except RuntimeError:
+ self.inhibit_quit = True
+ # Start protocol and services.
+ from Pymacs import __version__