From: KOSAKI Motohiro Date: 2010-01-15T18:10:43+09:00 Subject: [ruby-dev:40103] Re: [Bug #2603] NetBSD 5.0以降でpthreadの処理に由来する不具合 > 2010年1月15日16:36 MIURA, Fumiaki : > > At Fri, 15 Jan 2010 12:25:52 +0900, Takahiro Kambe wrote: > >> 2. プロセス自身がfork(2)せずにexec(3)する場合 > > > >> 2.については、fork(2)した子プロセスがpthread_*()な関数の呼び出しを避け > >> つつ、fork(2)せずにexec(3)する場合は稼働しているpthreadの後始末を行う > >> ようにしたつもりです。 > > > > http://www.opengroup.org/onlinepubs/009695399/functions/exec.html曰く > > The initial thread in the new process image shall have all > > thread-specific data values set to NULL and all > > thread-specific data keys shall be removed by the call to exec > > without running destructors. > > なので、しなくていいんじゃないかな。 > > MacOS X 対策じゃないかなぁ。 > [ruby-core:9848] そういう意図があるなら、積極的に入れるべきですね。