Re: Concurrent file access problem !

2001-07-05 Thread Karthik Krishnamurthy
correction. doesnt seem to work on the linux box. ftpd seems to unlink the existing file. i cant see how this producer/consumer problem can be solved without getting the producer to co-operate. the problem here is that the ftp daemon writes to the file. unless he hacks the code there is no wa

Re: Concurrent file access problem !

2001-07-03 Thread Karthik Krishnamurthy
the problem here is that the ftp daemon writes to the file. unless he hacks the code there is no way he can make the ftpd honour whatever locking protocol he chooses. EXCEPT for mandatory locking. this is enabled for a file by setting the set GID bit, and clearing the group exec bit. chmod 2640 w

Re: Concurrent file access problem !

2001-07-03 Thread Aaron Craig
What about a simple text file (that could act as a cheap PID) which is created by the first process that opens the file, and deleted by that process when it's done. Any other process that wants to access the same file sleep()s until the text file gets deleted. Hacky, maybe, but simple. At 10

Concurrent file access problem !

2001-07-03 Thread gael Jeanniard du Dot
Hy all! I'am working on a webcam application and I enconter a problem. I have a Camera, a video server and a Web/FTP server (Redhat 7.0, Apache 1.3.12-25, Wu-ftpd 2.6.1-6). My video server send 1 picture/s to the ftp server and the Web server pushes the pictures to the web client (Ie & Netscape