(self, lockfile, *cmd_list)
return subprocess.call(cmd_list)
Emulates the most basic behavior of Linux's flock(1).
Emulates the most basic behavior of Linux's flock(1).
Emulates the most basic behavior of Linux s flock ( 1 ) .
def ExecFlock(self, lockfile, *cmd_list):
    """Emulates the most basic behavior of Linux's flock(1)."""
    # Rely on exception handling to report errors.
    fd = os.open(lockfile, os.O_RDONLY|os.O_NOCTTY|os.O_CREAT, 0o666)
    fcntl.flock(fd, fcntl.LOCK_EX)
    return subprocess.call(cmd_list)
def ExecFlock ( self , lockfile , * cmd_list ) : # Rely on exception handling to report errors. fd = os . open ( lockfile , os . O_RDONLY | os . O_NOCTTY | os . O_CREAT , 0o666 ) fcntl . flock ( fd , fcntl . LOCK_EX ) return subprocess . call ( cmd_list )