]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: be more informative if set PID-file fails 23647/head
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 20 Aug 2018 10:31:10 +0000 (12:31 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 21 Aug 2018 13:13:28 +0000 (15:13 +0200)
commit68c9d9a2e1313a59ccc19c932c93a000398517b6
tree1425b108b65773caf7fa4aaa964a21dd083b15df
parent4573c7453aaa9f8d63f09a3d770de2fa8c7794f2
common: be more informative if set PID-file fails

The errors returned by fcntl(...F_SETLK...) can be:
 -  -1 for any odd error
 -  EAGAIN if locking does not work because the file is already locked.

Differentiate in these to be more informative on what is going on.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/global/pidfile.cc