I've recently found that I can use fuser to free up a mount point when I
can't figure out why its still busy. For example I would type
fuser -v -m /mnt/cdrom
to find out which user is currently using the cdrom then
fuser -k -m /mnt/cdrom
to kill it. Anyways I said all that to ask if perhaps you can do that
with /dev/dsp. It saves me from having to reboot. Perhaps you can use a
version of fuser. Any admins want to shead any thoughts on fuser? (yet
another tool I wish I knew about 4 years ago)
On Sat, 2003-12-20 at 22:56, Kevin wrote:
> On Sat, 2003-12-20 at 04:43, technomage wrote:
> > I've been getting this off and on with the later kernels.
> >
> > is there anything I can do about it short of rebooting my machine to recover
> > sound?
>
> I'm no sound expert, but I sometimes get badly behaved apps that lock
> /dev/dsp and refuse to release it when they exit. More precisely, the
> bad app doesn't completely exit and some straggler process holds a lock
> on /dev/dsp.
>
> Specifically, I have seen this with ayttm-0.4.2-1 and older, as well as,
> MPlayer 0.9 in some situations.
>
> Anyway, the lsof command might shed some light on what app is using
> /dev/dsp.
>
>
> # lsof /dev/dsp
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> gmplayer 26649 kevin 11w CHR 14,3 65363 /dev/dsp
> #
>
>
> ...Kevin
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
--
Carl Parrish (
cparrish@carlparrish.com)
http://www.carlparrish.com
---
Registered Linux User #295761
http://counter.li.org