[asterisk-users] useless mpg123 processes hanging around

Jeremy Kister asterisk-01 at jeremykister.com
Thu Nov 4 15:51:46 CDT 2010


Running Asterisk 1.6.2.11 on debian 5.0.6 with mpg123 1.4.3

when i start asterisk, i immediately see two mpg123 processes spawned 
which sit there forever.  I can't imagine it's normal behavior, but if 
it is, please explain :)


# /etc/init.d/asterisk stop
stopping asterisk.
#[...]
# /etc/init.d/asterisk start
starting asterisk.
# psg aster
root     14573     1  0 16:29 pts/2    00:00:00 /bin/sh 
/usr/sbin/safe_asterisk
root     14577 14573  0 16:29 pts/2    00:00:00 /usr/sbin/asterisk -f 
-vvvg -c
root     14665 12726  0 16:33 pts/2    00:00:00 grep aster
# psg mpg123
root     14605 14577  0 16:29 pts/2    00:00:00 mpg123 -q -s --mono -r 
8000 -b 2048 -f 4096 file1.mp3 file2.mp3 file3.mp3
root     14606 14605  0 16:29 pts/2    00:00:00 mpg123 -q -s --mono -r 
8000 -b 2048 -f 4096 file1.mp3 file2.mp3 file3.mp3
root     14609 12726  0 16:29 pts/2    00:00:00 grep mpg


they look rather worthless:

# strace -p 14605
Process 14605 attached - interrupt to quit
select(0, NULL, NULL, NULL, {0, 152000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 170000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 170000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 170000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 170000}) = 0 (Timeout)


killing them off doesnt seem to affect anything, except when stopping 
asterisk:

Beginning asterisk shutdown....
Executing last minute cleanups
   == Destroying musiconhold processes
[Nov  4 16:29:39] WARNING[14554]: res_musiconhold.c:1508 
moh_class_destructor: Unable to send a SIGHUP to MOH process?!!: No such 
process
Asterisk cleanly ending (0).


# egrep -v '^$|^\;' musiconhold.conf
[general]
                     ; decrease consumable cpu cycles and memory
                     ; disabled by default
[default]
mode=quietmp3
directory=/var/lib/asterisk/mohmp3
sort=random

Anyone have ideas if/how I can change this behavior?


-- 

Jeremy Kister
http://jeremy.kister.net./



More information about the asterisk-users mailing list