Your message dated Sun, 1 Jan 2017 13:33:27 -0200
with message-id
<CABwkT9qH6wc-NOgMyzTnaAKyXZ56gayB73D-kD6H=byfse1...@mail.gmail.com>
and subject line
has caused the Debian Bug report #637546,
regarding [mtr] Undocumented Pause mode keeps CPU busy
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
637546: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=637546
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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/
--- End Message ---
--- Begin Message ---
Fixed on v0.86
Samuel Henrique <samueloph>
--- End Message ---