From 3e54544e95fd07fed15ba487df1ee1a6abe8e542 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Thu, 20 Jun 2024 13:14:03 +0200 Subject: [PATCH] Not interested in child exit status --- src/conversion.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/conversion.cpp b/src/conversion.cpp index 37e9242..6858dc0 100644 --- a/src/conversion.cpp +++ b/src/conversion.cpp @@ -48,8 +48,7 @@ void convert(const std::string& path) { // try to convert to ppm using ImageMagi write_image(std::cout, stdin); - int exit_status; - throw_if_min1(wait(&exit_status)); + throw_if_min1(wait(nullptr)); break; } }