pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Avoid consuming 100% CPU in hold mode when the child exits



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Wed Mar 30 17:47:36 2016 +0200
Changeset:	05b043cca3aa3dcad10ab68166fa01a32298e7b1

Modified Files:
	xterm/Makefile
	xterm/distinfo
Added Files:
	xterm/patches/patch-main.c

Log Message:
Avoid consuming 100% CPU in hold mode when the child exits

Bump revision.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=05b043cca3aa3dcad10ab68166fa01a32298e7b1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 xterm/Makefile             |  1 +
 xterm/distinfo             |  1 +
 xterm/patches/patch-main.c | 16 ++++++++++++++++
 3 files changed, 18 insertions(+)

diffs:
diff --git a/xterm/Makefile b/xterm/Makefile
index 883939f..a19479c 100644
--- a/xterm/Makefile
+++ b/xterm/Makefile
@@ -1,6 +1,7 @@
 # $NetBSD$
 
 DISTNAME=	xterm-324
+PKGREVISION=	1
 CATEGORIES=	x11
 MASTER_SITES=	ftp://invisible-island.net/xterm/ \
 		http://www.sfr-fresh.com/unix/misc/
diff --git a/xterm/distinfo b/xterm/distinfo
index 44fbc61..b4615e5 100644
--- a/xterm/distinfo
+++ b/xterm/distinfo
@@ -4,3 +4,4 @@ SHA1 (xterm-324.tgz) = eb12025627f5d9aeedaf252e7fc5dd9c30fee0d6
 RMD160 (xterm-324.tgz) = 4c7c3446830b183327b969dbc982e3ee2e56e160
 SHA512 (xterm-324.tgz) = f6f2518a11eec6e41afb10ca4ec298c566b1fc5c3b3c4c4d533311b3f64ec04c2bc692798e75bbd34382cb64eca9b21ee4b05438c4d18486046d3c710c586626
 Size (xterm-324.tgz) = 1235312 bytes
+SHA1 (patch-main.c) = da2b1560c3d8011f6f06e18c37f496566c827c91
diff --git a/xterm/patches/patch-main.c b/xterm/patches/patch-main.c
new file mode 100644
index 0000000..7fbc3da
--- /dev/null
+++ b/xterm/patches/patch-main.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Avoid consuming 100% CPU in hold mode when the child exits.
+
+--- main.c.orig	2016-03-11 00:31:37.000000000 +0000
++++ main.c
+@@ -5213,8 +5213,7 @@ reapchild(int n GCC_UNUSED)
+     do {
+ 	if (pid == TScreenOf(term)->pid) {
+ 	    DEBUG_MSG("Exiting\n");
+-	    if (!hold_screen)
+-		need_cleanup = True;
++	    need_cleanup = True;
+ 	}
+     } while ((pid = nonblocking_wait()) > 0);
+ 


Home | Main Index | Thread Index | Old Index