From 72acb59971574bad541c0843d2cd596dc7026bb0 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 21 Nov 2022 07:53:23 +0100 Subject: [PATCH] core/team: don't wait for teamd -k (kill) to finish This removes a synchronous operation. Perhaps it might have been nice to watch the process finish and warn on failure or something, but currently we don't do anything with the result either. --- src/core/devices/team/nm-device-team.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/core/devices/team/nm-device-team.c b/src/core/devices/team/nm-device-team.c index 19c6b5598d..ccac2cd9e5 100644 --- a/src/core/devices/team/nm-device-team.c +++ b/src/core/devices/team/nm-device-team.c @@ -629,16 +629,14 @@ teamd_kill(NMDeviceTeam *self, GError **error) envp = teamd_env(); _LOGD(LOGD_TEAM, "running: %s", (tmp_str = g_strjoinv(" ", (char **) argv->pdata))); - return g_spawn_sync("/", - (char **) argv->pdata, - (char **) envp, - 0, - teamd_child_setup, - NULL, - NULL, - NULL, - NULL, - error); + return g_spawn_async("/", + (char **) argv->pdata, + (char **) envp, + 0, + teamd_child_setup, + NULL, + NULL, + error); } static gboolean