mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* process.c (run_exec_dup2): !save is false if Qnil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5d65e0982d
commit
3406ddcb33
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Fri Dec 5 18:55:25 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (run_exec_dup2): !save is false if Qnil.
|
||||
|
||||
Fri Dec 5 18:07:32 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (rb_w32_read, rb_w32_write, rb_w32_isatty): check
|
||||
|
|
|
@ -1910,7 +1910,7 @@ run_exec_dup2(VALUE ary, VALUE save)
|
|||
}
|
||||
|
||||
/* sort the table by oldfd: O(n log n) */
|
||||
if (!save)
|
||||
if (!RTEST(save))
|
||||
qsort(pairs, n, sizeof(struct fd_pair), intcmp);
|
||||
else
|
||||
qsort(pairs, n, sizeof(struct fd_pair), intrcmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue