From: ara.t.howard@... Date: 2006-08-04T02:23:33+09:00 Subject: Re: DRb on Windows Wants to Be Touched On Fri, 4 Aug 2006, Keith Fahlgren wrote: > Hey, > > We all appreciate the special joy that human contact can bring, but this > is driving me crazy.... > > Warning: I'll admit upfront that I only do occasionally Ruby programming > on Windows, so this could be a simple issue. > > Here's the problem: > 1. I run a DRb server on a Windows box to provide access to a > Windows-only program (using system()) > 2. I hit it from a DRb client > 3. The command prompt (DOS) on the server side waits/hangs at > (seemingly) random times until I hit some keyboard keys (like, say > CTRL+B) and then it continues > > Why in the world should the server wait for human (keyboard) > intervention? > the program run requires stdin. reopen 'stdin' to 'nul' (or whatever it is in windows) before becoming a daemon. -a -- we can never obtain peace in the outer world until we make peace with ourselves. - h.h. the 14th dali lama