[#30679] IO.popen doesn't fail for non-existent command — nobu@...
なかだです。
4 messages
2007/04/03
[#30681] IO.popen("-") with no fork — Nobuyoshi Nakada <nobu@...>
なかだです。
13 messages
2007/04/03
[#30685] Re: IO.popen("-") with no fork
— "U.Nakamura" <usa@...>
2007/04/04
こんにちは、なかむら(う)です。
[#30686] Re: IO.popen("-") with no fork
— Yukihiro Matsumoto <matz@...>
2007/04/04
Hi,
[#30687] Re: IO.popen("-") with no fork
— Nobuyoshi Nakada <nobu@...>
2007/04/04
なかだです。
[#30688] Re: IO.popen("-") with no fork
— Yukihiro Matsumoto <matz@...>
2007/04/04
まつもと ゆきひろです
[#30722] JSON ライブラリの取り込み — "NARUSE, Yui" <naruse@...>
naruseです。
20 messages
2007/04/21
[#30723] Re: JSON ライブラリの取り込み
— "Akinori MUSHA" <knu@...>
2007/04/21
At Sat, 21 Apr 2007 12:27:47 +0900,
[#30724] Re: JSON ライブラリの取り込み
— "NAKAMURA, Hiroshi" <nakahiro@...>
2007/04/21
-----BEGIN PGP SIGNED MESSAGE-----
[#30729] Re: Ruby 1.9: multiple splats on rvalues in parallel assignment — SASADA Koichi <ko1@...>
ささだです.
6 messages
2007/04/26
[#30730] Re: Ruby 1.9: multiple splats on rvalues in parallel assignment
— Yukihiro Matsumoto <matz@...>
2007/04/26
まつもと ゆきひろです
[ruby-dev:30679] IO.popen doesn't fail for non-existent command
From:
nobu@...
Date:
2007-04-03 10:26:15 UTC
List:
ruby-dev #30679
なかだです。
http://bts.vinelinux.org/guest.cgi?project=VineLinux&action=view_report&id=481
「481: ri で command not found: pager」に関連した話ですが、
IO.popenに存在しないコマンドを指定したときにエラーにならないの
は、少なくとも1.9でバグだと思います。
* io.c (popen_exec): should not close close-on-exec fds.
Index: io.c
===================================================================
--- io.c (revision 12141)
+++ io.c (working copy)
@@ -3041,4 +3041,7 @@ popen_exec(void *pp)
popen_redirect(p);
for (fd = 3; fd < NOFILE; fd++) {
+#ifdef FD_CLOEXEC
+ if (fcntl(fd, F_GETFD) & FD_CLOEXEC) continue;
+#endif
close(fd);
}
--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
中田 伸悦