Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buses/uart: Use 'lockf()' for serial locking #637

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 13, 2021

  1. buses/uart: Use 'lockf()' for serial locking

    Using this standard Linux mechanism to lock serial ports has the advantage that if the process is killed the lock is automatically released.
    
    Before a lock was simulated using the custom termios 'c_iflag' value 0x80000000, which has the disadvantage, other than being non-standard, that if the process is killed before closing the serial port, it would appear as locked and require manual cleanup of the flag.
    
    Signed-off-by: Giovanni Giacobbi <[email protected]>
    thg2k committed Apr 13, 2021
    Configuration menu
    Copy the full SHA
    7ff5d11 View commit details
    Browse the repository at this point in the history