aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2011-02-28 19:31:37 +0800
committerkwm <kwm@FreeBSD.org>2011-02-28 19:31:37 +0800
commitd929d7f099899a243fce8231f07c62fde18ba7a3 (patch)
tree4a015c341a6dc4b8ca9ea5fa99ca44ddb4cd75ab /x11-toolkits
parent929b183ad327e1b2639e992f6c1cd1d902d9d9fe (diff)
downloadfreebsd-ports-gnome-d929d7f099899a243fce8231f07c62fde18ba7a3.tar.gz
freebsd-ports-gnome-d929d7f099899a243fce8231f07c62fde18ba7a3.tar.zst
freebsd-ports-gnome-d929d7f099899a243fce8231f07c62fde18ba7a3.zip
Fix CPU hogging when subprocess terminates.
PR: ports/154755 Submitted by: Antoine Martin <antoine@nagafix.co.uk> Obtained from: py-gtk upstream
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/py-gtk2/Makefile2
-rw-r--r--x11-toolkits/py-gtk2/files/patch-gtk_gtk.override15
2 files changed, 16 insertions, 1 deletions
diff --git a/x11-toolkits/py-gtk2/Makefile b/x11-toolkits/py-gtk2/Makefile
index 700412b5bfe3..eb2b0663414f 100644
--- a/x11-toolkits/py-gtk2/Makefile
+++ b/x11-toolkits/py-gtk2/Makefile
@@ -8,7 +8,7 @@
PORTNAME= gtk
PORTVERSION= 2.22.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-toolkits python
MASTER_SITES= GNOME
MASTER_SITE_SUBDIR= sources/pygtk/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/x11-toolkits/py-gtk2/files/patch-gtk_gtk.override b/x11-toolkits/py-gtk2/files/patch-gtk_gtk.override
new file mode 100644
index 000000000000..668fafa8ce22
--- /dev/null
+++ b/x11-toolkits/py-gtk2/files/patch-gtk_gtk.override
@@ -0,0 +1,15 @@
+--- gtk/gtk.override.orig 2011-02-28 12:22:04.000000000 +0100
++++ gtk/gtk.override 2011-02-28 12:23:00.000000000 +0100
+@@ -1151,9 +1151,10 @@ pygtk_main_watch_check(GSource *source)
+ #ifdef HAVE_PYSIGNAL_SETWAKEUPFD
+ PySignalWatchSource *real_source = (PySignalWatchSource *)source;
+ GPollFD *poll_fd = &real_source->fd;
+- int data_size = 0;
++ unsigned char dummy;
++ gssize ret;
+ if (poll_fd->revents & G_IO_IN)
+- data_size = read(poll_fd->fd, 0, 1);
++ ret = read(poll_fd->fd, &dummy, 1);
+ #endif
+
+ state = pyg_gil_state_ensure();