summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-24 15:16:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-24 15:16:38 +0000
commit168e1068fd15862f6db9ba97ab30320999700fc0 (patch)
treedcd3747f0d9f551d2300b9a27b5c73ee04f6dbf0
parent414c32242778be8853a2c31bdae59467a75fae50 (diff)
downloadruby-168e1068fd15862f6db9ba97ab30320999700fc0.tar.gz
ruby-168e1068fd15862f6db9ba97ab30320999700fc0.tar.xz
ruby-168e1068fd15862f6db9ba97ab30320999700fc0.zip
* process.c: include sys/stat.h for umask.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--process.c3
-rw-r--r--test/ruby/test_process.rb1
3 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 90295ebd0..cbcdfa32b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Apr 25 00:16:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c: include sys/stat.h for umask.
+
Thu Apr 24 23:25:17 2008 Tanaka Akira <akr@fsij.org>
* include/ruby/intern.h (rb_env_clear): declared.
diff --git a/process.c b/process.c
index 5a1a3fc5d..69fecefba 100644
--- a/process.c
+++ b/process.c
@@ -57,6 +57,8 @@ struct timeval rb_time_interval(VALUE);
#undef HAVE_GETPGRP
#endif
+#include <sys/stat.h>
+
#ifdef HAVE_SYS_TIMES_H
#include <sys/times.h>
#endif
@@ -2733,7 +2735,6 @@ rb_f_system(int argc, VALUE *argv)
*
* Also, all non-standard unspecified descriptors can be closed by :close_others option.
* The "standard" descriptors are 0, 1 and 2.
- * (Current implementation closes decriptors less than some constant, such as 256.)
*
* # more similar to IO.popen
* r, w = IO.pipe
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index 5213730a2..4f0f2f00b 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1,6 +1,5 @@
require 'test/unit'
require 'tmpdir'
-require 'require_relative'
require_relative 'envutil'
class TestProcess < Test::Unit::TestCase