Skip to content

Commit

Permalink
lxclock: return the right error when open lock file failed
Browse files Browse the repository at this point in the history
Signed-off-by: Long Wang <w@laoqinren.net>
  • Loading branch information
0x0916 authored and stgraber committed Jul 16, 2017
1 parent 11a74d8 commit 6b0e00a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/lxclock.c
Expand Up @@ -224,6 +224,7 @@ int lxclock(struct lxc_lock *l, int timeout)
S_IWUSR | S_IRUSR);
if (l->u.f.fd == -1) {
ERROR("Error opening %s", l->u.f.fname);
saved_errno = errno;
goto out;
}
}
Expand Down

0 comments on commit 6b0e00a

Please sign in to comment.