HomeClusterLabs Projects

File lock block wait when conflict writing

Description

File lock block wait when conflict writing

F_SETLKW should be used to wait for lock release.
EINTR error number require to set "F_SETLKW",
the conflict process will block there and wait for
the lock relasesd. In this code, it will goto "retry",
or it would never try again.

Signed-off-by: yuan ren <yren@suse.com>

Details

Provenance
yuan ren <yren@suse.com>Authored on Feb 18 2019, 12:52 AM
Parents
rKebdc3d51b6b3: Merge pull request #196 from kronosnet/timeres
Branches
Unknown
Tags
Unknown

Event Timeline