mirror of
https://github.com/containers/podman.git
synced 2025-06-26 12:56:45 +08:00
rootless: drop preexec hook error message
the exec hooks already print the error message, so there is no need to print another one. [NO NEW TESTS NEEDED] Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -163,20 +163,11 @@ exec_binary (const char *path, char **argv, int argc)
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
if (WIFEXITED(status) && WEXITSTATUS (status))
|
||||
{
|
||||
fprintf (stderr, "external preexec hook %s failed\n", path);
|
||||
exit (WEXITSTATUS(status));
|
||||
}
|
||||
exit (WEXITSTATUS(status));
|
||||
if (WIFSIGNALED (status))
|
||||
{
|
||||
fprintf (stderr, "external preexec hook %s failed\n", path);
|
||||
exit (127+WTERMSIG (status));
|
||||
}
|
||||
exit (127+WTERMSIG (status));
|
||||
if (WIFSTOPPED (status))
|
||||
{
|
||||
fprintf (stderr, "external preexec hook %s failed\n", path);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user