Bug#877628: xterm -hold slow after end of command
From
Arnaud Giersch@21:1/5 to
All on Tue Oct 3 17:20:01 2017
XPost: linux.debian.bugs.dist
Package: xterm
Version: 327-2
Severity: normal
Tags: patch
Dear Maintainer,
When running with option "-hold", xterm is printing lines slowly if
the command terminates immediately.
For example:
$ xterm -hold -e "ls -l /usr/bin"
runs slowly, while
$ xterm -hold -e "ls -l /usr/bin ; read"
runs at normal speed.
The culprit seems to be the following lines, around line 559 in misc.c.
Without them xterm runs normally.
/*
* With NetBSD, closing a shell results in closing the X input event
* stream, which interferes with the "-hold" option. Wait a short time in
* this case, to avoid max'ing the CPU.
*/
if (hold_screen && caught_intr && !found) {
Sleep(10);
}
Regards,
Arnaud Giersch
-- System Information:
Debian Release: 9.1
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-debug'), (500, 'proposed-updates'), (500, 'stable'), (50, 'unstable'), (40, 'experimental'), (1, 'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages xterm depends on:
ii libc6 2.24-11+deb9u1
ii libfontconfig1 2.11.0-6.7+b1
ii libice6 2:1.0.9-2
ii libtinfo5 6.0+20161126-1+deb9u1
ii libutempter0 1.1.6-3
ii libx11-6 2:1.6.4-3
ii libxaw7 2:1.0.13-1+b2
ii libxft2 2.3.2-1+b2
ii libxinerama1 2:1.1.3-1+b3
ii libxmu6 2:1.1.2-2
ii libxpm4 1:3.5.12-1
ii libxt6 1:1.1.5-1
ii xbitmaps 1.1.1-2
Versions of packages xterm recommends:
ii x11-utils 7.7+3+b1
Versions of packages xterm suggests:
pn xfonts-cyrillic <none>
-- debconf-show failed
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)