Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Acquire exclusive lock for open file `fileobj`.

        def flock_exclusive(fileobj):
    """Acquire exclusive lock for open file `fileobj`."""
    fcntl.flock(fileobj, fcntl.LOCK_EX)
        


src/n/a/nagiosplugin-1.2.1/src/nagiosplugin/cookie.py   nagiosplugin(Download)
 
from .compat import UserDict, TemporaryFile
from .platform import flock_exclusive
import codecs
import json
        """
        self.fobj = self._create_fobj()
        flock_exclusive(self.fobj)
        if os.fstat(self.fobj.fileno()).st_size:
            try: