]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
build: Use FAIL_EXIT1 () on failure to exec child [BZ #23990]
authorGirish Joshi <girish946@gmail.com>
Fri, 29 May 2020 13:11:24 +0000 (10:11 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 29 May 2020 13:15:26 +0000 (10:15 -0300)
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
support/test-container.c

index afc23db1489df4b51d92b51159484c478eee19b3..e9109f9e3d5cf4647244eadf55e77fb284296e32 100644 (file)
@@ -392,7 +392,7 @@ recursive_remove (char *path)
     /* "rm" would have already printed a suitable error message.  */
     if (! WIFEXITED (status)
        || WEXITSTATUS (status) != 0)
-      exit (1);
+      FAIL_EXIT1 ("exec child returned status: %d", status);
 
     break;
   }