Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
973bb4a5
Commit
973bb4a5
authored
Dec 29, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_execve: simplify, keep standard error
parent
860a707f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/extras/libc.c
src/extras/libc.c
+1
-3
No files found.
src/extras/libc.c
View file @
973bb4a5
...
@@ -624,9 +624,7 @@ int __vlc_execve( vlc_object_t *p_object, int i_argc, char *const *ppsz_argv,
...
@@ -624,9 +624,7 @@ int __vlc_execve( vlc_object_t *p_object, int i_argc, char *const *ppsz_argv,
/* NOTE:
/* NOTE:
* Like it or not, close can fail (and not only with EBADF)
* Like it or not, close can fail (and not only with EBADF)
*/
*/
if
((
close
(
0
)
==
0
)
&&
(
close
(
1
)
==
0
)
&&
(
close
(
2
)
==
0
)
if
((
dup2
(
fds
[
1
],
0
)
==
0
)
&&
(
dup2
(
fds
[
1
],
1
)
==
1
)
&&
(
dup
(
fds
[
1
])
==
0
)
&&
(
dup
(
fds
[
1
])
==
1
)
&&
(
open
(
"/dev/null"
,
O_RDONLY
)
==
2
)
&&
((
psz_cwd
==
NULL
)
||
(
chdir
(
psz_cwd
)
==
0
)))
&&
((
psz_cwd
==
NULL
)
||
(
chdir
(
psz_cwd
)
==
0
)))
execve
(
ppsz_argv
[
0
],
ppsz_argv
,
ppsz_env
);
execve
(
ppsz_argv
[
0
],
ppsz_argv
,
ppsz_env
);
...
...
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