Project

General

Profile

Actions

Bug #6147

closed

should we check a result returned by fcntl?

Added by mame (Yusuke Endoh) about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0dev (2012-03-14 trunk 35017) [i686-linux]
Backport:
[ruby-dev:45364]

Description

たぶん kosaki さん (それともささださん?)

thread_pthread.c の rb_thread_create_timer_thread で

fcntl(timer_thread_pipe[1], F_SETFL, oflags);

の返り値チェックしなくていいの?ほかの fcntl の呼び出しでは
全部チェックしてるよ?って Coverity Scan さんが言ってます。

ユーザランドの開発者的にはここで fcntl で失敗するとかどうしろ
というの。。。と思いそうですが、システムコールの返り値は全部
チェックしろよ派のカーネル開発者的にはどうでしょうか。

--
Yusuke Endoh

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0