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
1718e6d6
Unverified
Commit
1718e6d6
authored
Mar 18, 2021
by
Stéphane Graber
Committed by
GitHub
Mar 18, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3715 from brauner/2021-03-18/fixes
rexec: don't close stderr
parents
45580870
b75c1e61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
rexec.c
src/lxc/rexec.c
+1
-1
No files found.
src/lxc/rexec.c
View file @
1718e6d6
...
@@ -162,7 +162,7 @@ static void lxc_rexec_as_memfd(char **argv, char **envp, const char *memfd_name)
...
@@ -162,7 +162,7 @@ static void lxc_rexec_as_memfd(char **argv, char **envp, const char *memfd_name)
if
(
execfd
<
0
)
if
(
execfd
<
0
)
return
;
return
;
ret
=
close_range
(
STDERR_FILENO
,
MAX_FILENO
,
CLOSE_RANGE_CLOEXEC
);
ret
=
close_range
(
STDERR_FILENO
+
1
,
MAX_FILENO
,
CLOSE_RANGE_CLOEXEC
);
if
(
ret
&&
(
errno
!=
ENOSYS
&&
errno
!=
EINVAL
))
if
(
ret
&&
(
errno
!=
ENOSYS
&&
errno
!=
EINVAL
))
fprintf
(
stderr
,
"%m - Failed to mark all file descriptors as close-on-exec
\n
"
);
fprintf
(
stderr
,
"%m - Failed to mark all file descriptors as close-on-exec
\n
"
);
fexecve
(
execfd
,
argv
,
envp
);
fexecve
(
execfd
,
argv
,
envp
);
...
...
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