Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
730481c0
Unverified
Commit
730481c0
authored
Jul 03, 2017
by
Long Wang
Committed by
Stéphane Graber
Aug 15, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxclock: return the right error when open lock file failed
Signed-off-by:
Long Wang
<
w@laoqinren.net
>
parent
42ba0192
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
lxclock.c
src/lxc/lxclock.c
+1
-0
No files found.
src/lxc/lxclock.c
View file @
730481c0
...
@@ -229,6 +229,7 @@ int lxclock(struct lxc_lock *l, int timeout)
...
@@ -229,6 +229,7 @@ int lxclock(struct lxc_lock *l, int timeout)
S_IWUSR
|
S_IRUSR
);
S_IWUSR
|
S_IRUSR
);
if
(
l
->
u
.
f
.
fd
==
-
1
)
{
if
(
l
->
u
.
f
.
fd
==
-
1
)
{
ERROR
(
"Error opening %s"
,
l
->
u
.
f
.
fname
);
ERROR
(
"Error opening %s"
,
l
->
u
.
f
.
fname
);
saved_errno
=
errno
;
goto
out
;
goto
out
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment