[Memphis.pm] Flock

Keith W. Sheffield sheff at pobox.com
Tue Oct 3 23:11:27 CDT 2000


>>>>> "Mike" == Mike Hopkins <mikehopkins_98 at yahoo.com> writes:

> Can any one tell me what
> happens if I use flock( $file,2 ) for an exclusive file lock and my cgi
> program crashes before I can do the flock( $file, 8 ) thing.  I feel
> linux is smart enough to tell the file should be unlocked if the script
> that locked it crashes.

I believe most Unix systems will free the lock when the file is closed, so
it should unlock it.



-- 
So let it be written. So let it be done.  To kill the first born pharaoh son.
I'm creeping Death.  -- RTL:CD c4-7

Keith W. Sheffield sheff at pobox.com
GPG fingerprint = 7219 D5CB 8B10 8602 2B81  AFC3 3D48 FA3F 4F51 93C9

----------------------------------------------------------------------------
To unsubscribe, please send email to majordomo at pm.org
with 'unsubscribe memphis-pm-list' in the body of the message.
----------------------------------------------------------------------------




More information about the Memphis-pm mailing list