fswebcam to take pictures from my webcam and write them to
/var/www so that anybody can view them from my website.
The problem is that my server is a Raspberry Pi with a slow SD card. It takes several seconds to write the image to the SD card. If a user requests the image while it is still being written, they'll get a half-finished version of the image:
Is it possible to make Apache wait for an image to be fully written before it serves it?