[macruby-changes] [1023] MacRuby/branches/experimental/io.c

source_changes at macosforge.org source_changes at macosforge.org
Fri Mar 20 13:06:48 PDT 2009


Revision: 1023
          http://trac.macosforge.org/projects/ruby/changeset/1023
Author:   pthomson at apple.com
Date:     2009-03-20 13:06:48 -0700 (Fri, 20 Mar 2009)
Log Message:
-----------
Well, let's just pretend that that embarrassing bug never happened.

Modified Paths:
--------------
    MacRuby/branches/experimental/io.c

Modified: MacRuby/branches/experimental/io.c
===================================================================
--- MacRuby/branches/experimental/io.c	2009-03-20 20:01:35 UTC (rev 1022)
+++ MacRuby/branches/experimental/io.c	2009-03-20 20:06:48 UTC (rev 1023)
@@ -1811,7 +1811,7 @@
  *  object as a parameter to the block, the child version of the block
  *  will be passed <code>nil</code>, and the child's standard in and
  *  standard out will be connected to the parent through the pipe. Not
- *  available on all platforms.
+ *  available on all platforms.s
  *
  *     f = IO.popen("uname")
  *     p f.readlines
@@ -1844,7 +1844,7 @@
     }
     
     FILE *process = popen(StringValueCStr(process_name), RSTRING_PTR(mode));
-    if (process) {
+    if (process == NULL) {
         rb_raise(rb_eIOError, "system call to popen() failed");
     }
     
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090320/7c6b50ba/attachment.html>


More information about the macruby-changes mailing list