This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: (scheme-window)
- From: Per Bothner <per at bothner dot com>
- To: "Bruce R. Lewis" <brlewis at ALUM dot MIT dot EDU>
- Cc: kawa at sources dot redhat dot com
- Date: Wed, 17 Apr 2002 09:56:38 -0700
- Subject: Re: (scheme-window)
- References: <200204161928.PAA15773@scrubbing-bubbles.mit.edu>
Bruce R. Lewis wrote:
> It seems that closing a window opened with scheme-window exits java. Is
> this a peculiarity of my setup (X11/twm), a bug, or intended behavior?
>
> It's nice being able to put (scheme-window #t) in a BRL page to interact
> with the interpreter running on my web server, but I'd like to be able
> to close that window and leave things running.
I tried removing the System.exit(0) in GuiConsole's close() method.
The problem is this:
(1) I start up Kawa normally (interactively).
(2) I type (scheme-window) at the prompt.
(3) I select the Close menu option, so the window goes away.
(4) I can continue using the Kawa command-line normally.
(5) I type ctrl-d (end-of-file). Normally that causes Kawa
to exit, but it just hangs.
Even worse, starting Kawa with the -w option and then closing
the window does not exit Kawa as you'd expect.
My guess is that the VM doesn't exit because some non-daemon
thread is still running. However, the Future than runs the
Kawa interaction in the window does seem to finish. Perhaps
a volunteer could track this down? It's probably something
silly!
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/