[lug] how to handle open files - upload server
Bear Giles
bgiles at coyotesong.com
Tue Jan 13 12:03:18 MST 2004
Backups have a similar problem and the way I handle it is to get a
nonexclusive lock on all files being saved. This doesn't always
work, but if sftp doesn't get an exclusive lock (either directly
or indirectly via fopen()) it's an easy patch.
Once you know that sftp locks files being uploaded, you can write
a quick C program to produce a list of all lockable files in the
subdirectory.
Bear
More information about the LUG
mailing list