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
57d2be54
Commit
57d2be54
authored
Feb 12, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coverity: Check return value of fcntl in lxc_popen
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
e7de366c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
utils.c
src/lxc/utils.c
+4
-1
No files found.
src/lxc/utils.c
View file @
57d2be54
...
@@ -642,7 +642,10 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
...
@@ -642,7 +642,10 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
* But it must not be marked close-on-exec.
* But it must not be marked close-on-exec.
* Undo the effects.
* Undo the effects.
*/
*/
fcntl
(
child_end
,
F_SETFD
,
0
);
if
(
fcntl
(
child_end
,
F_SETFD
,
0
)
!=
0
)
{
SYSERROR
(
"Failed to remove FD_CLOEXEC from fd."
);
exit
(
127
);
}
}
}
/*
/*
...
...
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