[macruby-changes] [3259] MacRuby/trunk/gcd.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jan 12 16:47:31 PST 2010
Revision: 3259
http://trac.macosforge.org/projects/ruby/changeset/3259
Author: ernest.prabhakar at gmail.com
Date: 2010-01-12 16:47:30 -0800 (Tue, 12 Jan 2010)
Log Message:
-----------
Added assert to gcd.c:rb_source_close_handler
Modified Paths:
--------------
MacRuby/trunk/gcd.c
Modified: MacRuby/trunk/gcd.c
===================================================================
--- MacRuby/trunk/gcd.c 2010-01-13 00:47:28 UTC (rev 3258)
+++ MacRuby/trunk/gcd.c 2010-01-13 00:47:30 UTC (rev 3259)
@@ -956,7 +956,8 @@
rb_source_close_handler(void* longptr)
{
long filedes = (long)longptr;
- close((int)filedes);
+ int rc = close((int)filedes);
+ assert(rc == 0);
}
/*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100112/7fe1b400/attachment.html>
More information about the macruby-changes
mailing list