ref: 2346727d8b1e5a708007d95989c8eee197abe0c5
parent: a4700546fc1fc899acdec66cf27a9f147e9f8fe5
	author: Ori Bernstein <ori@eigenstate.org>
	date: Wed Oct 24 16:06:18 EDT 2012
	
Give myrbuild a better command failure msg
--- a/myrbuild/myrbuild.c
+++ b/myrbuild/myrbuild.c
@@ -115,8 +115,10 @@
     } else {waitpid(pid, &status, 0);
}
- if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
-        die("Command failed");+ if (WIFEXITED(status) && WEXITSTATUS(status) != 0)
+        die("%s: exited with status %d\n", cmd[0], WEXITSTATUS(status));+ else if (WIFSIGNALED(status))
+        die("%s: exited with signal %d\n", cmd[0], WTERMSIG(status));}
int isfresh(char *from, char *to)
--
⑨