Unverified Commit a43c2203 by Christian Brauner Committed by Stéphane Graber

utils: lxc_popen() remove dead assignments

parent c8ee00f8
...@@ -439,7 +439,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command) ...@@ -439,7 +439,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
int child_std_end = STDOUT_FILENO; int child_std_end = STDOUT_FILENO;
close(parent_end); close(parent_end);
parent_end = -1;
if (child_end != child_std_end) { if (child_end != child_std_end) {
/* dup2() doesn't dup close-on-exec flag */ /* dup2() doesn't dup close-on-exec flag */
...@@ -478,7 +477,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command) ...@@ -478,7 +477,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
/* parent */ /* parent */
close(child_end); close(child_end);
child_end = -1;
if (child_pid < 0) { if (child_pid < 0) {
ERROR("fork failure"); ERROR("fork failure");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment