From 0437fae1a850ee0bfddb195d56edd505c015310d Mon Sep 17 00:00:00 2001 From: William Wennerström Date: Tue, 15 Dec 2020 15:48:51 +0100 Subject: Do not inherit stdin of main process I see no reason to inherit the stdin, so let's have it disabled. --- src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.4.1-2-gfad0