[MPlayer-users] /dev/dsp not closed?

D Richard Felker III dalias at aerifal.cx
Thu Sep 5 05:22:02 CEST 2002

On Wed, Sep 04, 2002 at 10:43:07PM +0200, Arpi wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi,
> > Then I used 'lsof /dev/dsp' and the process owning /dev/dsp was
> > 'xscreensaver'. I'm using the stop_xscreensaver option with mplayer. Well,
> > I think xscreensaver does not use /dev/dsp normally. So could be the case
> > mplayer is not closing /dev/dsp when it starts screensaver?
> it was discussed recently, when mplayer restarts xscreensaver it starts as a
> child of mplayer, and somehow inherits its open files, including dsp.
> actually we need a better way to stop/restart xscreensaver than the current
> hack, but unfortunatelly teh xscreensaver author doesn't support any
> acceptable method to control his mess. he wants the video players to run a
> dedicated thread just to 'ping' the screensaver by executing a shell comamnd
> every minute. we cannot accept this method and he doesn't accept others.

Could we just add close-on-exec flag to the dsp file descriptor as a
stupid workaround for now?

Also I like the idea of sending SIGSTOP and SIGCONT to the process...


More information about the MPlayer-users mailing list