Explorar o código

Fix 'run' not to continue after interrupted command

Signed-off-by: Detlev Zundel <dzu@denx.de>
Detlev Zundel %!s(int64=18) %!d(string=hai) anos
pai
achega
5afb202093
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/main.c

+ 1 - 1
common/main.c

@@ -1336,7 +1336,7 @@ int run_command (const char *cmd, int flag)
 
 		/* Did the user stop this? */
 		if (had_ctrlc ())
-			return 0;	/* if stopped then not repeatable */
+			return -1;	/* if stopped then not repeatable */
 	}
 
 	return rc ? rc : repeatable;