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 Aug 15, 2017
1 parent 42ba019 commit 730481c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/lxclock.c
Expand Up @@ -229,6 +229,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 730481c

Please sign in to comment.