mirror of
https://github.com/profanity-im/profanity.git
synced 2025-02-02 15:08:15 -05: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:
parent
695a1d3c8c
commit
0437fae1a8
@ -474,7 +474,7 @@ get_mentions(gboolean whole_word, gboolean case_sensitive, const char* const mes
|
|||||||
gboolean
|
gboolean
|
||||||
call_external(gchar** argv, gchar** std_out, gchar** std_err)
|
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)
|
if (std_out == NULL)
|
||||||
flags |= G_SPAWN_STDOUT_TO_DEV_NULL;
|
flags |= G_SPAWN_STDOUT_TO_DEV_NULL;
|
||||||
if (std_err == NULL)
|
if (std_err == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user