aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-09-26 05:23:00 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-09-26 05:23:00 +0300
commit9a1d173658bcaf0987c4b4892d3872e324d94772 (patch)
tree12d1e453ba38a460d45971aaf246842d6524094e /debug.c
parentd64da79c830daee5b0c9e125320f240a22aa4110 (diff)
parent196eeabf82e8f4653872afa2f49fa124295f15d5 (diff)
downloadegawk-9a1d173658bcaf0987c4b4892d3872e324d94772.tar.gz
egawk-9a1d173658bcaf0987c4b4892d3872e324d94772.tar.bz2
egawk-9a1d173658bcaf0987c4b4892d3872e324d94772.zip
Merge branch 'master' into feature/nocopy
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 af5cfe82..7f58e927 100644
--- a/debug.c
+++ b/debug.c
@@ -2902,7 +2902,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"));