diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-07-11 09:49:30 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-07-13 16:41:11 +0200 |
commit | 62e48e5b71abe3002361bbf018961f8031fba03e (patch) | |
tree | c7befcc9ef6a7c00cc9ee36f171c62ce231f1ea8 /pkg/rootless/rootless_linux.c | |
parent | 0066374fc3f69bbfd9ed08986115049d9a39b1f8 (diff) | |
download | podman-62e48e5b71abe3002361bbf018961f8031fba03e.tar.gz podman-62e48e5b71abe3002361bbf018961f8031fba03e.tar.bz2 podman-62e48e5b71abe3002361bbf018961f8031fba03e.zip |
rootless: correctly propagate the exit status from the container
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg/rootless/rootless_linux.c')
-rw-r--r-- | pkg/rootless/rootless_linux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/rootless/rootless_linux.c b/pkg/rootless/rootless_linux.c index f2684f75f..d08c6c875 100644 --- a/pkg/rootless/rootless_linux.c +++ b/pkg/rootless/rootless_linux.c @@ -105,16 +105,16 @@ reexec_in_user_namespace(int ready) ret = read (ready, &b, 1) < 0; while (ret < 0 && errno == EINTR); if (ret < 0) - _exit (1); + _exit (EXIT_FAILURE); close (ready); if (setresgid (0, 0, 0) < 0 || setresuid (0, 0, 0) < 0) - _exit (1); + _exit (EXIT_FAILURE); execvp (argv[0], argv); - _exit (1); + _exit (EXIT_FAILURE); } int |