summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-10 04:00:07 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-10 04:00:07 +0000
commit79444dbdb9e59aecd6462c4c03767072f3fb1451 (patch)
treece9bb037c3143195dcca01041e25609809beaaf7
parentedc03a2912b60f319d5b424460f385c9926d3e37 (diff)
* win32/win32.h: define execv() using do_aspawn().
* process.c (proc_exec_v): remove #ifdef's which stopped needing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--process.c4
-rw-r--r--win32/win32.h2
3 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index bce9d95c82..7203923cf8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Dec 10 12:53:05 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * win32/win32.h: define execv() using do_aspawn().
+
+ * process.c (proc_exec_v): remove #ifdef's which stopped needing.
+
Tue Dec 9 23:32:23 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/tk.rb, ext/tk/lib/tkcanvas.rb, ext/tk/lib/tkdialog.rb,
diff --git a/process.c b/process.c
index 3210882001..4311032367 100644
--- a/process.c
+++ b/process.c
@@ -599,11 +599,7 @@ proc_exec_v(argv, prog)
}
#endif /* MSDOS or __human68k__ or __EMX__ */
before_exec();
-#ifdef _WIN32
- do_aspawn(P_OVERLAY, prog, argv);
-#else
execv(prog, argv);
-#endif
after_exec();
return -1;
}
diff --git a/win32/win32.h b/win32/win32.h
index 0cf4dc2e06..99507e44d8 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -117,6 +117,8 @@ extern "C++" {
#define fsync(h) _commit(h)
#undef stat
#define stat(path,st) rb_w32_stat(path,st)
+#undef execv
+#define execv(path,argv) do_aspawn(P_OVERLAY,path,argv)
#ifdef __MINGW32__
struct timezone {