DRb on Windows

I think there’s been a change somewhere since I used to
play with drb on Windows.

It may be in the interpreter or the drb library or both.

I used to do a “gets” to terminate the server. (This trick
is still in some of the examples, I think.)

But when I had problems a couple of weeks ago, someone
told me the gets was blocking it. Sure enough, this was
the problem.

But now I’m not sure how to kill a server. Control-C
won’t do it. I have to kill the shell (or DOS prompt) and
start up another one.

I did try putting a gets in another thread (and exiting
when it returned)… it didn’t help any.

So how can I cleanly kill a drb server?

Thanks,
Hal

But now I’m not sure how to kill a server. Control-C
won’t do it. I have to kill the shell (or DOS prompt) and
start up another one.

Try Ctrl-Break (very important not to press Ctrl-C first, since it will hang
indefinitely).

Regards,
M.

···

From: “Hal E. Fulton”

From: “Hal E. Fulton”

But now I’m not sure how to kill a server. Control-C
won’t do it. I have to kill the shell (or DOS prompt) and
start up another one.

Try Ctrl-Break (very important not to press Ctrl-C first, since it will
hang
indefinitely).

Thanks, Milan. That does indeed work.

I’d still like a way of getting the carriage-return
trick to work under Windows… it was a nice simple
technique that lodged in my mind.

And ctrl-break works, but I will surely forget and
try a ctrl-C and hang the window… :slight_smile:

Thanks,
Hal

···

----- Original Message -----
From: “Milan Maksimovic” maksa@sezampro.yu
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Saturday, February 01, 2003 3:50 AM
Subject: Re: DRb on Windows…