Skip to content

Commit

Permalink
Merge pull request #17997 from giuseppe/drop-exec-hook-error-message
Browse files Browse the repository at this point in the history
rootless: drop preexec hook error message
  • Loading branch information
openshift-merge-robot authored Mar 31, 2023
2 parents 3e44a7a + 266cc78 commit 5145852
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions pkg/rootless/rootless_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5145852

Please sign in to comment.