I use mplayer to pull an icecast stream from my mpd server to my
laptop, using
mplayer -playlist http://SERVER:8000/mpd.mp3.m3u
If I forget to SIGINT the mplayer when I suspend my laptop, then on
resume it enters a 100% CPU spin and does nothing. An strace on both
parent and child mplayer process at this point shows no syscalls at all
(so it's a pure CPU spin).
It does respond to SIGINT, but requires two signals to quit it; the
terminal scrollback looks like:
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A:15894.3 ( 4:24:54.3) of 0.0 (unknown) 1.8% 0%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A:16783.2 ( 4:39:43.2) of 0.0 (unknown) 1.8% 4%
[AO_ALSA] Pcm in suspend mode, trying to resume.
[AO_ALSA] alsa-lib: pcm_hw.c:712:(snd_pcm_hw_resume)
SNDRV_PCM_IOCTL_RESUME failed (-38): Function not implemented
A:16783.6 ( 4:39:43.5) of 0.0 (unknown) 1.8% 5%
MPlayer interrupted by signal 2 in module: play_audio
MPlayer interrupted by signal 2 in module: enable_cache
MPlayer interrupted by signal 2 in module: play_audio
MPlayer interrupted by signal 2 in module: enable_cache
leo@shy:~
$