shithub: mc

Download patch

ref: 231f122bcbc9010decfaae7942916d7ce948767d
parent: 734d2e4ffd947e1a5fd73ae22029d3b0647be290
author: Ori Bernstein <[email protected]>
date: Tue Feb 19 08:00:32 EST 2013

It's not a fatal if an 'mc' subcommand fails.

    We should just exit with the status returned.

--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -127,7 +127,7 @@
         waitpid(pid, &status, 0);
     }
     if (WIFEXITED(status) && WEXITSTATUS(status) != 0)
-        die("%s: exited with status %d\n", cmd[0], WEXITSTATUS(status));
+        exit(WEXITSTATUS(status));
     else if (WIFSIGNALED(status))
         die("%s: exited with signal %d\n", cmd[0], WTERMSIG(status));
 }