From: kai.selgrad@web.de
To: Neil Jerram <neil@ossau.uklinux.net>
Cc: guile-user@gnu.org, kai.selgrad@web.de
Subject: Re: scm_shell in C-Thread - Quit vs. Terminal Corruption
Date: Sun, 18 Oct 2009 17:48:53 +0200 [thread overview]
Message-ID: <20091018154853.GA15564@shoikan> (raw)
In-Reply-To: <87iqec7ne2.fsf@ossau.uklinux.net>
Hej Neil.
On 16:05 Sun 18 Oct , Neil Jerram wrote:
> Calling scm_shell() with no args means just that that thread will run
> `(top-repl)' - whose definition you can see in boot-9.scm. In other
> words you could say that the default args are like `-c (top-repl)'.
>
> `(quit)' means (throw 'quit ...), and the (top-repl) code handles this
> by exiting its internal loop. Then scm_shell() calls exit().
>
> So, if you want something else to happen after `(quit)', such as waiting
> for other threads to terminate and clean up, you just need to put code
> for that in a procedure named, e.g. `wait-for-cleanup', and then call
> scm_shell() with args `-c (begin (top-repl) (wait-for-cleanup)'.
That sounds pretty good, thank you! I think I should be able to get my
stuff working with this information. :)
I will give it a try this week.
Kai.
next prev parent reply other threads:[~2009-10-18 15:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-16 19:09 scm_shell in C-Thread - Quit vs. Terminal Corruption vimml
2009-10-17 2:42 ` Linas Vepstas
2009-10-17 17:36 ` kai.selgrad
2009-10-18 15:05 ` Neil Jerram
2009-10-18 15:48 ` kai.selgrad [this message]
2009-10-17 2:49 ` Linas Vepstas
2009-10-17 12:44 ` Ludovic Courtès
2009-10-17 17:43 ` vimml
2009-10-17 17:47 ` vimml
2009-10-17 12:52 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091018154853.GA15564@shoikan \
--to=kai.selgrad@web.de \
--cc=guile-user@gnu.org \
--cc=neil@ossau.uklinux.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).