aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-09-26 05:23:06 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-09-26 05:23:06 +0300
commitc21fb43348d3315b60082f7f1b740db51be90258 (patch)
treef1a201c23aff747f9d73792b9558c189fcb7e7e7 /debug.c
parent3dc29b1fbb332fd0a0571ed803401f4ca069e9b3 (diff)
parent196eeabf82e8f4653872afa2f49fa124295f15d5 (diff)
downloadegawk-c21fb43348d3315b60082f7f1b740db51be90258.tar.gz
egawk-c21fb43348d3315b60082f7f1b740db51be90258.tar.bz2
egawk-c21fb43348d3315b60082f7f1b740db51be90258.zip
Merge branch 'master' into feature/typed-regex
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 1c21c587..9793c3ec 100644
--- a/debug.c
+++ b/debug.c
@@ -2907,7 +2907,11 @@ restart(bool run)
close_all();
/* start a new process replacing the current process */
+#ifdef __MINGW32__
+ execvp(d_argv[0], (const char * const *)d_argv);
+#else
execvp(d_argv[0], d_argv);
+#endif
/* execvp failed !!! */
fprintf(out_fp, _("Failed to restart debugger"));