From: matz@... (Yukihiro Matsumoto) Date: 2003-10-15T23:16:43+09:00 Subject: Re: Thread + fork warning Hi, In message "Re: Thread + fork warning" on 03/10/15, Bedo Sandor writes: |% chmod +x thread.rb ; ./thread.rb |./thread.rb:4: warning: fork terminates thread at ./thread.rb:8 | |Seems to work as I expected, but warnings make me misgiving. |Could somebody explain me the reasons? Am I doing wrong |if I leave out of consideration this warning? What is |the correct/usual method to execute processes in background? When you fork, all other threads are terminated in the child process. The simplest solution is not mixing fork and threads, for example, use system instead of fork+exec. matz.