mirror of
https://github.com/containers/podman.git
synced 2025-07-22 22:09:55 +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,21 +163,12 @@ exec_binary (const char *path, char **argv, int argc)
|
|||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (WIFEXITED(status) && WEXITSTATUS (status))
|
if (WIFEXITED(status) && WEXITSTATUS (status))
|
||||||
{
|
|
||||||
fprintf (stderr, "external preexec hook %s failed\n", path);
|
|
||||||
exit (WEXITSTATUS(status));
|
exit (WEXITSTATUS(status));
|
||||||
}
|
|
||||||
if (WIFSIGNALED (status))
|
if (WIFSIGNALED (status))
|
||||||
{
|
|
||||||
fprintf (stderr, "external preexec hook %s failed\n", path);
|
|
||||||
exit (127+WTERMSIG (status));
|
exit (127+WTERMSIG (status));
|
||||||
}
|
|
||||||
if (WIFSTOPPED (status))
|
if (WIFSTOPPED (status))
|
||||||
{
|
|
||||||
fprintf (stderr, "external preexec hook %s failed\n", path);
|
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
do_preexec_hooks_dir (const char *dir, char **argv, int argc)
|
do_preexec_hooks_dir (const char *dir, char **argv, int argc)
|
||||||
|
Reference in New Issue
Block a user