[gnome-builder] subprocess-launcher: check for std*_fd as -1
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] subprocess-launcher: check for std*_fd as -1
- Date: Mon, 12 Dec 2016 05:39:57 +0000 (UTC)
commit 08ecf324875fb82ff7b1db32f89a3746815291e7
Author: Christian Hergert <chergert redhat com>
Date: Sun Dec 11 21:00:02 2016 -0800
subprocess-launcher: check for std*_fd as -1
libide/subprocess/ide-subprocess-launcher.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/subprocess/ide-subprocess-launcher.c b/libide/subprocess/ide-subprocess-launcher.c
index 60eead3..4688a3b 100644
--- a/libide/subprocess/ide-subprocess-launcher.c
+++ b/libide/subprocess/ide-subprocess-launcher.c
@@ -246,19 +246,19 @@ ide_subprocess_launcher_spawn_worker (GTask *task,
g_subprocess_launcher_set_child_setup (launcher, child_setup_func, NULL, NULL);
g_subprocess_launcher_set_cwd (launcher, priv->cwd);
- if (priv->stdin_fd)
+ if (priv->stdin_fd != -1)
{
g_subprocess_launcher_take_stdin_fd (launcher, priv->stdin_fd);
priv->stdin_fd = -1;
}
- if (priv->stdout_fd)
+ if (priv->stdout_fd != -1)
{
g_subprocess_launcher_take_stdout_fd (launcher, priv->stdout_fd);
priv->stdout_fd = -1;
}
- if (priv->stderr_fd)
+ if (priv->stderr_fd != -1)
{
g_subprocess_launcher_take_stderr_fd (launcher, priv->stderr_fd);
priv->stderr_fd = -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]