def lockfile(file):
    "flock a given file, then unflock it immediately"
    if _lockonly(file):
        flock(file, LOCK_UN)
flock a given file, then unflock it immediately
recipes/Python/577404_fcntlflock_Unix_file_lock_behaviour_sampling/recipe-577404.py