]> git.sur5r.net Git - openocd/blobdiff - src/openocd.c
When calling openocd from a shell like this:
[openocd] / src / openocd.c
index 048ce8524809e319579a68f163cec12bdb829b0e..d06e2c56e5258a09d09cad9f794794defaaf8a43 100644 (file)
@@ -279,6 +279,8 @@ static int openocd_thread(int argc, char *argv[], struct command_context *cmd_ct
                return EXIT_FAILURE;
 
        ret = parse_config_file(cmd_ctx);
+       if (ret == ERROR_OK_EXIT)
+               return ERROR_OK;
        if (ret != ERROR_OK)
                return EXIT_FAILURE;