Next File Locking 4

Trap #1: LOCK_UN

        # Process A
        open DATAFILE, "+< $datafile" or die ...;
        flock DATAFILE, LOCK_EX;
        seek DATAFILE, 0, 2;
        print DATAFILE, $newdata;
        flock DATAFILE, LOCK_UN;
        # do something else for awhile


Next Copyright © 2003 M. J. Dominus