vendredi 27 mars 2015

Do file locks stay when you use open for a second time?


Vote count:

0




Suppose:



my $fh;
open $fh, ">>", "file.txt";
flock($fh, LOCK_EX);
open $fh, "+<", "file.txt";
close $fh;


Will the file lock stay or will it be released? If it will be released is there a way to make it stay ? I cloud not find relevant information.



asked 45 secs ago







Do file locks stay when you use open for a second time?

Aucun commentaire:

Enregistrer un commentaire