[MPlayer-dev-eng] /dev/rtc left open
D Richard Felker III
dalias at aerifal.cx
Thu Jan 29 05:09:41 CET 2004
On Wed, Jan 28, 2004 at 03:59:38PM +0000, Bill Trenker wrote:
> With /dev/rtc configured, I notice that if I stop MPlayer with ctrl-c the rtc file-descriptor (rtc_fd in mplayer.c) is left open. If I try cat /dev/rtc I get this message:
> cat: /dev/rtc: Device or resource busy
>
> If I then try to run MPlayer again it can't open /dev/rtc so it has to use usleep(). This also happens if I stop MPlayer by clicking on the Exit button on the X11 window that the MPlayer video is running in.
>
> Once I get /dev/rtc back again (by rebooting) then if I stop MPlayer by typing the "q" key on the keyboard, /dev/rtc seems to be closed and is available again.
>
> This is for MPlayer 0.92-3.3.2 and 1.0pre3-3.3.2 on a Linux 2.6.1 system.
Maybe you're using cache or something so a background process still
has the fd open. Try killall mplayer or fuser -k /dev/rtc...
Rich
More information about the MPlayer-dev-eng
mailing list