Exemple #1
0
        public bool TryAcquireExclusiveLock()
        {
            if (!InitFileStream(false))
            {
                return(false);
            }

            return(m_flock.ExecuteNoThrow($"-n {m_fileStream.SafeFileHandle.DangerousGetHandle().ToInt32()}") == 0);
        }
Exemple #2
0
 public int ExecuteNoThrow(string arguments)
 {
     return(m_interpreter.ExecuteNoThrow(GetFinalArguments(arguments)));
 }