Update python to 2.5.4 (#4408)
[openwrt/svn-archive/archive.git] / lang / python / patches / 050-add_signal_set_wakeup_fd.patch
index 04a4f5c4781ee3bf6771b1fb644cb1c84b5892c7..6e189d0779e0067472cb0ef2dbad43cdabf5b706 100644 (file)
@@ -23,15 +23,13 @@ diff -urN Python-2.5.1.orig/Modules/signalmodule.c Python-2.5.1/Modules/signalmo
  #ifndef SIG_ERR
  #define SIG_ERR ((PyOS_sighandler_t)(-1))
  #endif
-@@ -75,6 +77,8 @@
+@@ -75,4 +77,6 @@
          PyObject *func;
  } Handlers[NSIG];
  
 +static int wakeup_fd = -1;
 +
- static int is_tripped = 0; /* Speed up sigcheck() when none tripped */
- static PyObject *DefaultHandler;
+ /* Speed up sigcheck() when none tripped */
 @@ -112,6 +116,7 @@
  static void
  signal_handler(int sig_num)