From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Remco Bras Newsgroups: gmane.lisp.guile.user Subject: Can scm_shell be interrupted? Date: Sat, 10 May 2008 22:54:59 +0200 Message-ID: <200805102254.59603.vrsoft@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210456961 14332 80.91.229.12 (10 May 2008 22:02:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 May 2008 22:02:41 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun May 11 00:03:18 2008 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 1Jux9v-0003PZ-Ey for guile-user@m.gmane.org; Sun, 11 May 2008 00:03:15 +0200 Original-Received: from localhost ([127.0.0.1]:33774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jux9D-0001iP-2F for guile-user@m.gmane.org; Sat, 10 May 2008 18:02:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Juw61-0006vR-6b for guile-user@gnu.org; Sat, 10 May 2008 16:55:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Juw5z-0006vB-LE for guile-user@gnu.org; Sat, 10 May 2008 16:55:08 -0400 Original-Received: from [199.232.76.173] (port=53329 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Juw5z-0006v8-Hu for guile-user@gnu.org; Sat, 10 May 2008 16:55:07 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.174]:12181) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Juw5z-0004Y6-5K for guile-user@gnu.org; Sat, 10 May 2008 16:55:07 -0400 Original-Received: by ug-out-1314.google.com with SMTP id l31so478728ugc.48 for ; Sat, 10 May 2008 13:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=1LC/udBY3fRYRxGn6QbKKa5MtOvkzRPlDfmHRgFpQDI=; b=wBtUqWHG5GulU3v+ocIn6yz+pcAcrUG+99YBiTb0ZoCoviRWuY4HrCfaz+/RAYAbYc2qJ3Hhsam5jf/qTnzQ7GYF1kWMfwGVnE87G0U2fs7TfP/Q1eawE3m9V2A0yHjPUWwQFD7XtvaIVYhtl88hiIBHBIfwJVUVcuxzmQqOHSY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=rIcQ3ftaF1MNtBQjQy6fPKBAjYNjEX7bUd/zuPM6CANIzvKdaS6hjEKqPZarDkkjIBdqk8gku3epVv1T9JXKD+/fmXtrStnuBB4d15XjVH1N5qvlIsFvzk7HSRct5R6W9SE/IWu1qcDuShHcjhBFArEkPmxd/6ec/B6/+uWRL3o= Original-Received: by 10.67.116.11 with SMTP id t11mr3038455ugm.61.1210452904372; Sat, 10 May 2008 13:55:04 -0700 (PDT) Original-Received: from zero-desktop.local ( [86.91.128.48]) by mx.google.com with ESMTPS id 32sm1678319ugd.12.2008.05.10.13.55.02 (version=SSLv3 cipher=RC4-MD5); Sat, 10 May 2008 13:55:03 -0700 (PDT) User-Agent: KMail/1.9.9 Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 10 May 2008 18:02:27 -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:6562 Archived-At: Hello, I have a question about guile. I'd like to know if it is feasible to run a guile REPL and control when it runs. For example, consider the following scenario. A package may or may not have a thread running scm_shell, when the user requests that the package runs an REPL. The package responds by running scm_shell in a thread and keeping that thread's ID. If the user wants the package to stop the REPL at any moment, is there a way to do this safely? Thanks in advance, Remco Bras