pub fn flock_serial(port: &TTYPort, port_name: &str) -> Result<()>
Expand description

Invoke Linux flock() on the given serial port, lock will be released when the file descriptor is closed (or when the process terminates).