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

modbus-rtu: don't use O_EXCL when opening the device #760

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

Commits on Oct 22, 2024

  1. modbus-rtu: don't use O_EXCL when opening the device

    Quote from 'man 2 open':
    -snip-
    ...
    In general, the behavior of O_EXCL is undefined if it is used without O_CREAT.
    ...
    -snap-
    
    Since we don't create the device file here - we just want to open
    (hopefully) existing ones - let's simply drop this flag to be on
    the safe side.
    
    Signed-off-by: Michael Heimpold <[email protected]>
    mhei committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    d55aba8 View commit details
    Browse the repository at this point in the history