Fix 'run' not to continue after interrupted command
authorDetlev Zundel <dzu@denx.de>
Wed, 23 May 2007 16:47:48 +0000 (18:47 +0200)
committerDetlev Zundel <dzu@denx.de>
Tue, 12 Jun 2007 12:23:00 +0000 (14:23 +0200)
Signed-off-by: Detlev Zundel <dzu@denx.de>
common/main.c

index 09ee64b81318f4e970a725a4b13b75ba3ea818ea..553ac357dc3fd4c765995c9b388e0e83ee005cac 100644 (file)
@@ -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;