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.
This commit is contained in:
Lubomir Rintel 2022-11-21 07:53:23 +01:00
parent b792a74785
commit 72acb59971

View file

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