all: use G_SPAWN_CLOEXEC_PIPES with g_spawn_async_with_pipes()

G_SPAWN_CLOEXEC_PIPES is supported since glib 2.40, which we already
depend on.
This commit is contained in:
Thomas Haller
2023-04-03 19:38:00 +02:00
parent 17ae6a4413
commit 31fd8f60cf
5 changed files with 6 additions and 5 deletions

View File

@@ -107,7 +107,8 @@ nmtstc_service_init(void)
g_spawn_async_with_pipes(NULL,
(char **) args,
NULL,
G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD,
G_SPAWN_CLOEXEC_PIPES | G_SPAWN_SEARCH_PATH
| G_SPAWN_DO_NOT_REAP_CHILD,
NULL,
NULL,
&info->pid,