summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--io.c2
-rw-r--r--version.h6
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c80d3a7169..c7c07f6aa1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Apr 4 10:18:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open): raise NotImplementedError for command "-" on
+ platforms where fork(2) is not available. [ruby-dev:30681]
+
Tue Apr 3 15:45:41 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/socket.c (s_recv, s_recvfrom): some systems (such as
diff --git a/io.c b/io.c
index fe24def3c7..69df268226 100644
--- a/io.c
+++ b/io.c
@@ -3031,6 +3031,7 @@ pipe_open(pstr, pname, mode)
FILE *f;
if (!pname) pname = StringValueCStr(pstr);
+ if (strcmp("-", pname) == 0) rb_notimplement();
f = popen(pname, mode);
if (!f) rb_sys_fail(pname);
@@ -3056,6 +3057,7 @@ pipe_open(pstr, pname, mode)
FILE *fpr, *fpw;
if (!pname) pname = StringValueCStr(pstr);
+ if (strcmp("-", pname) == 0) rb_notimplement();
retry:
pid = pipe_exec(pname, rb_io_mode_modenum(mode), &fpr, &fpw);
if (pid == -1) { /* exec failed */
diff --git a/version.h b/version.h
index 65e1d3b75f..99ae81f275 100644
--- a/version.h
+++ b/version.h
@@ -1,7 +1,7 @@
#define RUBY_VERSION "1.8.6"
-#define RUBY_RELEASE_DATE "2007-04-03"
+#define RUBY_RELEASE_DATE "2007-04-04"
#define RUBY_VERSION_CODE 186
-#define RUBY_RELEASE_CODE 20070403
+#define RUBY_RELEASE_CODE 20070404
#define RUBY_PATCHLEVEL 5000
#define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 6
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 4
-#define RUBY_RELEASE_DAY 3
+#define RUBY_RELEASE_DAY 4
RUBY_EXTERN const char ruby_version[];
RUBY_EXTERN const char ruby_release_date[];