Package: mtr
Version: 0.80-1
Severity: normal
--- Please enter the report below this line. ---
mtr has an undocumented option in curses mode that pauses mtr. Simply
press 'p' and the process will stop until space is pressed. However, it
does not wait for input but rather calls select repeatedly to wait for
an event. Due to the select parameters, select returns immediately such
that mtr constantly loops.
The problem is in select.c. However, I don't know what the best patch
for this is. The following patch just increases the timeout so that the
mtr does not spin that fast.
--- mtr-0.80.orig/select.c
+++ mtr-0.80/select.c
@@ -84,8 +84,8 @@
do {
if(anyset || paused) {
selecttime.tv_sec = 0;
- selecttime.tv_usec = 0;
-
+ selecttime.tv_usec = 200;
+
rv = select(maxfd, (void *)&readfd, NULL, NULL, &selecttime);
} else {
Kind regards,
Moritz Hoffmann
http://antiguru.de/
--- System information. ---
Architecture: i386
Kernel: Linux 3.0.0-1-686-pae
Debian Release: wheezy/sid
500 unstable www.debian-multimedia.org
500 testing security.debian.org
500 testing ftp.de.debian.org
500 testing ftp.ch.debian.org
500 stable silk.apana.org.au
500 stable dl.google.com
500 squeeze-backports mozilla.debian.net
500 natty ppa.launchpad.net
--- Package information. ---
Depends (Version) | Installed
=====================================-+-====================
libatk1.0-0 (>= 1.20.0) | 2.0.1-2
libc6 (>= 2.7-1) | 2.13-10
libcairo2 (>= 1.2.4) | 1.10.2-6.1
libglib2.0-0 (>= 2.12.0) | 2.28.6-1
libgtk2.0-0 (>= 2.12.0) | 2.24.4-3
libncurses5 (>= 5.6+20071006-3) | 5.9-1
libpango1.0-0 (>= 1.20.2) | 1.28.4-1
Package's Recommends field is empty.
Package's Suggests field is empty.
--
Moritz Hoffmann <[email protected]>
http://wiki.antiguru.de/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]