From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kai.selgrad@web.de Newsgroups: gmane.lisp.guile.user Subject: Re: scm_shell in C-Thread - Quit vs. Terminal Corruption Date: Sat, 17 Oct 2009 19:36:18 +0200 Message-ID: <20091017173618.GA5441@shoikan> References: <20091016190925.GA26534@shoikan> <3ae3aa420910161942y67d04163kb270dba9b05f61b3@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255812083 32204 80.91.229.12 (17 Oct 2009 20:41:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2009 20:41:23 +0000 (UTC) Cc: guile-user@gnu.org To: Linas Vepstas Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Oct 17 22:41:11 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MzG5N-0005W8-So for guile-user@m.gmane.org; Sat, 17 Oct 2009 22:41:10 +0200 Original-Received: from localhost ([127.0.0.1]:39983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzG5N-0000L8-GC for guile-user@m.gmane.org; Sat, 17 Oct 2009 16:41:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzDE7-0002Er-O5 for guile-user@gnu.org; Sat, 17 Oct 2009 13:37:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzDE2-0002EP-6R for guile-user@gnu.org; Sat, 17 Oct 2009 13:37:58 -0400 Original-Received: from [199.232.76.173] (port=40926 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzDE2-0002EM-2Q for guile-user@gnu.org; Sat, 17 Oct 2009 13:37:54 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:50940) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MzDE1-0007kT-HQ for guile-user@gnu.org; Sat, 17 Oct 2009 13:37:53 -0400 Original-Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 0E67012E57A38; Sat, 17 Oct 2009 19:36:22 +0200 (CEST) Original-Received: from [84.56.122.80] (helo=localhost) by smtp08.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.110 #314) id 1MzDCX-0003DL-00; Sat, 17 Oct 2009 19:36:21 +0200 Content-Disposition: inline In-Reply-To: <3ae3aa420910161942y67d04163kb270dba9b05f61b3@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Sender: kai.selgrad@web.de X-Provags-ID: V01U2FsdGVkX19/sBZwwOxgVqbeSDCqcABLmaHZmRruDoU9H8OA IuSbTUsUMT51kF4OhiTwjDMNkF2BvBOX9PR01DrJRoXhPb5/Uh TdkSPgUdk= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-Mailman-Approved-At: Sat, 17 Oct 2009 16:40:39 -0400 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7448 Archived-At: Hej linas, thanks for your reply. > > application and guile). When I enter > > =A0 =A0 =A0 =A0(quit) > > in the terminal scm_shell calls exit(), which does not care much for = my > > application cleanup. > wouldn't atexit() solve this problem? Yes, you're right. atexit() would solve this problem. Didn't really think about that before... hm :) Sadly, the otherway around is much more common (pressing ESC in the application window, thus terminating the actual application thread). Well, thanks for this one :) Kai