callout: ignore waitpid() return value

Coverity:
Defect type: CHECKED_RETURN
This commit is contained in:
Jiří Klimeš 2014-12-04 17:19:41 +01:00
parent 43b4c8f826
commit 28599331e3

View file

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