iprop master: Don't ignore flock() result

This commit is contained in:
Nicolas Williams
2015-05-19 00:21:35 -05:00
parent 56b67ac2eb
commit 854aaab182

View File

@@ -526,7 +526,7 @@ send_complete (krb5_context context, slave *s, const char *database,
* our lock to a shared one.
*/
flock(fd, LOCK_EX);
ret = flock(fd, LOCK_EX);
if (ret == -1) {
ret = errno;
krb5_warn(context, ret, "flock(fd, LOCK_EX)");