mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-20 00:21:29 +00:00
callout: ignore waitpid() return value
Coverity: Defect type: CHECKED_RETURN
This commit is contained in:
parent
43b4c8f826
commit
28599331e3
|
@ -296,7 +296,7 @@ script_timeout_cb (gpointer user_data)
|
|||
|
||||
if (kill (script->pid, 0) == 0)
|
||||
kill (script->pid, SIGKILL);
|
||||
waitpid (script->pid, NULL, 0);
|
||||
(void) waitpid (script->pid, NULL, 0);
|
||||
|
||||
script->error = g_strdup_printf ("Script '%s' timed out.", script->script);
|
||||
script->result = DISPATCH_RESULT_TIMEOUT;
|
||||
|
|
Loading…
Reference in a new issue