From: Masahiro Sakai (=?iso-2022-jp?B?GyRCPHIwZkAvTTUbKEI=?=) Date: 2003-04-16T22:19:19+09:00 Subject: [ruby-list:37569] Re: error in Ruby/Tk + fork さかいといいます。 From: Shin Nishiyama Subject: [ruby-list:37567] error in Ruby/Tk + fork Date: Wed, 16 Apr 2003 20:39:11 +0900 > こんばんは、西山@千葉大といいます。 > > Win2K+cygwinの環境で、Ruby/Tkを少しいじっていたのですが、 > 途中でforkやsystemを使うと次のように動かないみたいです。 > これって、仕様でしょうか?それとも環境依存? > 確認していただけるとうれしいです。 これはCygwinのfork()の問題で、 DLLをrebaseする事で一応回避できるようです。 http://homepage.ntlworld.com/steven.obrien2/ から引用 | * rebasing | Run-time loaded dlls (which are used extensively by Gnome) may | cause the cygwin fork() call to fail. This is because the child | process must load the dll to exactly the same address as the | parent process loaded it, and this is not always possible. The | only solution available currently is to rebase your DLLS, using | the rebase package that is now part of the official cygwin | distribution. -- 酒井 政裕 / Masahiro Sakai