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

Add AIX support with fcntl #40

Merged
merged 1 commit into from
Aug 26, 2020
Merged

Add AIX support with fcntl #40

merged 1 commit into from
Aug 26, 2020

Commits on Aug 26, 2020

  1. Add AIX support with fcntl

    AIX doesn't provide a true flock() syscall. It does exist but it's just
    a wrapper around fcntl. It doesn't provide safe locks under file
    descriptors of a same process.
    
    The current implementation is based on the file
    cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go.
    
    Using fcntl implementation doesn't allow to have several RLocks at the
    same time as closing a file descriptor might release the lock if even
    others RLocks remain attached.
    Clément Chigot committed Aug 26, 2020
    Configuration menu
    Copy the full SHA
    9ef783d View commit details
    Browse the repository at this point in the history