This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (scheme-window)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]