[vte] spawn: Remove unused error cases
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] spawn: Remove unused error cases
- Date: Mon, 27 Apr 2020 18:50:05 +0000 (UTC)
commit 84d9b5192bb999054e50487ac3b3019068f77371
Author: Christian Persch <chpe src gnome org>
Date: Mon Apr 27 20:49:04 2020 +0200
spawn: Remove unused error cases
src/vtespawn.cc | 19 -------------------
1 file changed, 19 deletions(-)
---
diff --git a/src/vtespawn.cc b/src/vtespawn.cc
index 642653f3..93a3ccf1 100644
--- a/src/vtespawn.cc
+++ b/src/vtespawn.cc
@@ -457,8 +457,6 @@ enum
{
CHILD_CHDIR_FAILED,
CHILD_EXEC_FAILED,
- CHILD_DUP2_FAILED,
- CHILD_FORK_FAILED
};
static G_GNUC_NORETURN void
@@ -751,23 +749,6 @@ fork_exec (gboolean intermediate_child,
break;
- case CHILD_DUP2_FAILED:
- g_set_error (error,
- G_SPAWN_ERROR,
- G_SPAWN_ERROR_FAILED,
- _("Failed to redirect output or input of child process (%s)"),
- g_strerror (buf[1]));
-
- break;
-
- case CHILD_FORK_FAILED:
- g_set_error (error,
- G_SPAWN_ERROR,
- G_SPAWN_ERROR_FORK,
- _("Failed to fork child process (%s)"),
- g_strerror (buf[1]));
- break;
-
default:
g_set_error (error,
G_SPAWN_ERROR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]