public bool TryAcquireExclusiveLock() { if (!InitFileStream(false)) { return(false); } return(m_flock.ExecuteNoThrow($"-n {m_fileStream.SafeFileHandle.DangerousGetHandle().ToInt32()}") == 0); }
public int ExecuteNoThrow(string arguments) { return(m_interpreter.ExecuteNoThrow(GetFinalArguments(arguments))); }