about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWilliam Wennerström <william@wstrm.dev>2020-12-15 15:48:51 +0100
committerWilliam Wennerström <william@wstrm.dev>2020-12-15 15:48:51 +0100
commit0437fae1a850ee0bfddb195d56edd505c015310d (patch)
tree4281807f63f44d3c09bccc8107dc01e803c904c2
parent695a1d3c8c22b48fdf55b6d797d8b4b7e43abc27 (diff)
downloadprofani-tty-0437fae1a850ee0bfddb195d56edd505c015310d.tar.gz
Do not inherit stdin of main process
I see no reason to inherit the stdin, so let's have it disabled.
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 3d3b00dd..658a3a4e 100644
--- a/src/common.c
+++ b/src/common.c
@@ -474,7 +474,7 @@ get_mentions(gboolean whole_word, gboolean case_sensitive, const char* const mes
 gboolean
 call_external(gchar** argv, gchar** std_out, gchar** std_err)
 {
-    GSpawnFlags flags = G_SPAWN_SEARCH_PATH | G_SPAWN_CHILD_INHERITS_STDIN;
+    GSpawnFlags flags = G_SPAWN_SEARCH_PATH;
     if (std_out == NULL)
         flags |= G_SPAWN_STDOUT_TO_DEV_NULL;
     if (std_err == NULL)