From: Yusuke Endoh Date: 2012-03-14T20:07:52+09:00 Subject: [ruby-dev:45364] [ruby-trunk - Bug #6147][Open] should we check a result returned by fcntl? Issue #6147 has been reported by Yusuke Endoh. ---------------------------------------- Bug #6147: should we check a result returned by fcntl? https://bugs.ruby-lang.org/issues/6147 Author: Yusuke Endoh Status: Open Priority: Normal Assignee: Motohiro KOSAKI Category: Target version: ruby -v: ruby 2.0.0dev (2012-03-14 trunk 35017) [i686-linux] たぶん kosaki さん (それともささださん?) thread_pthread.c の rb_thread_create_timer_thread で fcntl(timer_thread_pipe[1], F_SETFL, oflags); の返り値チェックしなくていいの?ほかの fcntl の呼び出しでは 全部チェックしてるよ?って Coverity Scan さんが言ってます。 ユーザランドの開発者的にはここで fcntl で失敗するとかどうしろ というの。。。と思いそうですが、システムコールの返り値は全部 チェックしろよ派のカーネル開発者的にはどうでしょうか。 -- Yusuke Endoh -- http://bugs.ruby-lang.org/