Your message dated Sun, 24 Feb 2013 22:11:19 +0100
with message-id <[email protected]>
and subject line Re: mpc idle consumes 100% cpu doing recvfrom in a loop
has caused the Debian Bug report #543536,
regarding mpc idle consumes 100% cpu doing recvfrom in a loop
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.)
--
543536: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=543536
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mpc
Version: 0.16-1
Severity: normal
Reading mpc manpage I noticed the nice addition of the idle command.
However it does not work. Well actually it does work, it only is worse
than polling, because it loops over recvfrom consuming one cpu. The
following line keeps repeating in strace output:
recvfrom(3, 0x1d5016c, 16384, 0, 0, 0) = -1 EAGAIN (Resource temporarily
unavailable)
The socket is non-blocking and libmpdclient.c will wait until it becomes
readable before reading for all commands except for idle. I did not find
out why mpc does this, so I don't want to provide a patch possibly
breaking other things.
Helmut
-- System Information:
Versions of packages mpc suggests:
ii mpd 0.15-2 Music Player Daemon
--- End Message ---
--- Begin Message ---
> On Tue, Aug 25, 2009 at 07:03:04PM +0200, Helmut Grohne wrote:
>> recvfrom(3, 0x1d5016c, 16384, 0, 0, 0) = -1 EAGAIN (Resource
>> temporarily unavailable)
>
> I can no longer reproduce this bug.
in that case, let's consider it fixed.
Florian
--- End Message ---