1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Do not inherit stdin of main process

I see no reason to inherit the stdin, so let's have it disabled.
This commit is contained in:
William Wennerström 2020-12-15 15:48:51 +01:00
parent 695a1d3c8c
commit 0437fae1a8
No known key found for this signature in database
GPG Key ID: E1382990BEDD319B

View File

@ -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)