Re: device or resource busy -newbie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, 2003-10-19 at 21:40, sting sting wrote:
> I am developing a "C" video conference application ;
> I use video4linux API; I am working with /dev/video0 device.
> sometimes I get the error : "device or resource busy".
> Does this indicates solely that I did not close /dev/video0 ?

Usually yes. Iv'e seen some async oddities (i.e., close and reopen
immediately will trigger this error; however, one second in between will
solve this), but I believe this to be a lag between the closing process
and the next reopening process (i.e., kill old_pid; restart app while
the kill wasn't handled by the old-running app yet). In code, a
close(fd); fd = open(...); should work perfectly.

Ronald

-- 
Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
Linux Video/Multimedia developer




[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux