summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-01-19 05:37:15 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-01-19 05:37:15 +0000
commit0205517a8c8ea0524350917206ec41c3bdbf6579 (patch)
tree7d71340bb1ae6b12a41eb7c317b2a15a4654f399 /io.c
parentadc7c78fa2f16d96bf5cfc42b32174953db6d08a (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@26 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index a051ffad38..546ec45d18 100644
--- a/io.c
+++ b/io.c
@@ -1001,7 +1001,7 @@ pipe_open(pname, mode)
break;
default: /* parent */
- if (pid > 0) rb_sys_fail(0);
+ if (pid < 0) rb_sys_fail(pname);
else {
NEWOBJ(port, struct RFile);
OBJSETUP(port, cIO, T_FILE);