Language: English Programming Language: C Published by: dyfet [not registered] Last Update: 5/15/2006 Views: 141
Lockfiles are commonly used to provide process exclusive access to a "resource" in the filesystem. This is a small and fairly portable function to create and manage UNIX "lock" files such as those used by mgetty to lock devices, mail access .lck files, etc. This is a fairly long snippet in that various "race" conditions can occur in creating a ".lck" and this code deals with them.
Name *
Email (won't be displayed) *
Website
Comment *
Security Code *