Browse Source

Merge commit '525426c' into bfgminer

Luke Dashjr 12 years ago
parent
commit
f7f24c5777
1 changed files with 3 additions and 1 deletions
  1. 3 1
      util.c

+ 3 - 1
util.c

@@ -2720,7 +2720,9 @@ void *cmd_thread(void *cmdp)
 {
 {
 	const char *cmd = cmdp;
 	const char *cmd = cmdp;
 	applog(LOG_DEBUG, "Executing command: %s", cmd);
 	applog(LOG_DEBUG, "Executing command: %s", cmd);
-	system(cmd);
+	int rc = system(cmd);
+	if (rc)
+		applog(LOG_WARNING, "Command returned %d exit code: %s", rc, cmd);
 	return NULL;
 	return NULL;
 }
 }