[glib: 2/15] gspawn: Remove spurious blank lines
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/15] gspawn: Remove spurious blank lines
- Date: Tue, 16 Feb 2021 14:04:40 +0000 (UTC)
commit 63467c559e0f641e7adb60f4bae9b21da784e713
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Oct 13 10:12:44 2020 +0100
gspawn: Remove spurious blank lines
This introduces no functional changes.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
glib/gspawn.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/glib/gspawn.c b/glib/gspawn.c
index cb50dd278..bf7aebb68 100644
--- a/glib/gspawn.c
+++ b/glib/gspawn.c
@@ -1409,11 +1409,9 @@ do_exec (gint child_err_report_fd,
CHILD_CHDIR_FAILED);
/* Redirect pipes as required */
-
if (stdin_fd >= 0)
{
/* dup2 can't actually fail here I don't think */
-
if (safe_dup2 (stdin_fd, 0) < 0)
write_err_and_exit (child_err_report_fd,
CHILD_DUP2_FAILED);
@@ -1434,7 +1432,6 @@ do_exec (gint child_err_report_fd,
if (stdout_fd >= 0)
{
/* dup2 can't actually fail here I don't think */
-
if (safe_dup2 (stdout_fd, 1) < 0)
write_err_and_exit (child_err_report_fd,
CHILD_DUP2_FAILED);
@@ -1454,7 +1451,6 @@ do_exec (gint child_err_report_fd,
if (stderr_fd >= 0)
{
/* dup2 can't actually fail here I don't think */
-
if (safe_dup2 (stderr_fd, 2) < 0)
write_err_and_exit (child_err_report_fd,
CHILD_DUP2_FAILED);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]