diff options
author | Marius Bakke <[email protected]> | 2020-04-24 17:28:11 +0200 |
---|---|---|
committer | Marius Bakke <[email protected]> | 2020-04-24 17:28:11 +0200 |
commit | c57d649de380da890f296428b85564cbc527bbad (patch) | |
tree | 79e9c0b5407aea91c421f7004a0da7bb1e207ba4 /gnu/packages/aux-files/run-in-namespace.c | |
parent | 69c2e0103ab64aa6e0beb7651797de9cfd22a6d7 (diff) | |
parent | 9b42918edd3f7e9d505c874d3947c0a0815fe551 (diff) |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/aux-files/run-in-namespace.c')
-rw-r--r-- | gnu/packages/aux-files/run-in-namespace.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/packages/aux-files/run-in-namespace.c b/gnu/packages/aux-files/run-in-namespace.c index 551f4db88a..160f7da1c8 100644 --- a/gnu/packages/aux-files/run-in-namespace.c +++ b/gnu/packages/aux-files/run-in-namespace.c @@ -1,5 +1,5 @@ /* GNU Guix --- Functional package management for GNU - Copyright (C) 2018, 2019 Ludovic Courtès <[email protected]> + Copyright (C) 2018, 2019, 2020 Ludovic Courtès <[email protected]> This file is part of GNU Guix. @@ -343,7 +343,13 @@ Please refer to the 'guix pack' documentation for more information.\n"); chdir ("/"); /* avoid EBUSY */ rm_rf (new_root); free (new_root); - exit (status); + + if (WIFEXITED (status)) + exit (WEXITSTATUS (status)); + else + /* Abnormal termination cannot really be reproduced, so exit + with 255. */ + exit (255); } } } |