Browse Source

Merge commit '525426c' into bfgminer-3.2.x

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

+ 3 - 1
util.c

@@ -2721,7 +2721,9 @@ void *cmd_thread(void *cmdp)
 {
 	const char *cmd = cmdp;
 	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;
 }