From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vladimir Zhbanov Newsgroups: gmane.lisp.guile.user Subject: Re: C-c in guile Date: Mon, 23 Jan 2017 19:05:39 +0300 Message-ID: <20170123160539.GA15429@localhost.localdomain> References: <877f5ovd85.fsf@gmail.com> <1B6562AF-4DDE-4B20-9547-2878426DEF0E@gmail.com> <87lgu3h9eg.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1485187615 13417 195.159.176.226 (23 Jan 2017 16:06:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jan 2017 16:06:55 +0000 (UTC) User-Agent: Mutt/1.5.23 (2014-03-12) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jan 23 17:06:50 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cVh8e-00024N-Fm for guile-user@m.gmane.org; Mon, 23 Jan 2017 17:06:36 +0100 Original-Received: from localhost ([::1]:42873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVh8j-0002sH-85 for guile-user@m.gmane.org; Mon, 23 Jan 2017 11:06:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVh7t-0002qL-A5 for guile-user@gnu.org; Mon, 23 Jan 2017 11:05:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVh7o-0008Qc-CL for guile-user@gnu.org; Mon, 23 Jan 2017 11:05:49 -0500 Original-Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:34436) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cVh7o-0008QF-3P for guile-user@gnu.org; Mon, 23 Jan 2017 11:05:44 -0500 Original-Received: by mail-lf0-x243.google.com with SMTP id q89so14443382lfi.1 for ; Mon, 23 Jan 2017 08:05:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=k3BK8ONM4Tzx+z3abzea8IfOauEy6oA5L6WWUjommas=; b=tmA9CQ55BFvTo4d14kWVV9N8FQJSNZDUHFiRC94Q4/EcSz+yKa4V/5+gVcFMHhOZox tDVz8v60/VlNWIkSJSyZMPJsy5XtvEJKLVbCqDXeRD38Pu2DrH1RYvFPb6puRLQgt44p qKY4xWc5it9dnocwdohF0/NlTjXV5s0OmFbpc4VRXLBNmsCaJGk1X16dmDX+rmPwfnkE 7e3zCzXtCiGdmQN7cqZ5io6y0MRb7LAWYLjMBBUR0bDrcgcmEiLZfnMon3dK9A4QPO/C ga+cPqvpaVikn8qFB0YEqdphFTwK/t4L/uBBQyVO06wNPWr38EXtQnPrNZINW1Vi4NKf MwJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=k3BK8ONM4Tzx+z3abzea8IfOauEy6oA5L6WWUjommas=; b=jfPG9GxVfzgSAB/xmvTIOn0Kd6mSW51DIAz0dbC+lF/M7ND1B1OPBKwYGN6jTNv9ar QJ4tsxGorHHdzqDPl62raxGDo3M4Xg2ClkxUcX7D1U6ilchiQZm1OPXb0xIzC05JqOKl 7O2q4rCp3DquVGoLiekF01RMOcn261rEkamLfmUZIMg3D9p3nJhbOGQS8YqkA6z8J5he qbFEv1uVxY0ZIzcUH5WRGCHUOl16QziZ9BEmZNEVMxpqK+OhMpvQcavn9ywi2Wf6yIKU 3zrcLPgd6/4LddtkIIKZHCzCbP2QVyUUtgaeqS3wHZM+AWcSSJc03vgoefZdkmhcfltp oUKA== X-Gm-Message-State: AIkVDXLwhbMH+YiPIPIj+E8jik5/Lmz7kotRwYyDtog3HMha9RGbMhaZysGpX1kIp6ZwWA== X-Received: by 10.25.74.72 with SMTP id x69mr9237389lfa.66.1485187540869; Mon, 23 Jan 2017 08:05:40 -0800 (PST) Original-Received: from newvzh.vzh ([213.24.134.14]) by smtp.gmail.com with ESMTPSA id a138sm6501147lfb.2.2017.01.23.08.05.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 08:05:40 -0800 (PST) Original-Received: from vovka by newvzh.vzh with local (Exim 4.84_2) (envelope-from ) id 1cVh7j-0005sm-J9 for guile-user@gnu.org; Mon, 23 Jan 2017 19:05:39 +0300 Mail-Followup-To: guile-user@gnu.org Content-Disposition: inline In-Reply-To: <87lgu3h9eg.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::243 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13124 Archived-At: On Sun, Jan 22, 2017 at 02:54:31PM +0800, Alex Vong wrote: > Matt Wette writes: > > >> On Jan 21, 2017, at 3:55 AM, Alex Vong wrote: > >> > >> Hello, > >> > >> When running the external program "yes" in shell, > >> > >> $ yes > >> > >> We can terminate the process by pressing C-c. > >> > >> However, when running the external program "yes" in guile, > >> > >> $ guile -c '(system* "yes")' > >> > >> We cannot terminate the process by pressing C-c, > >> but we can suspend it by pressing C-z. > >> > >> Why is that? Is there any way I can terminate the process by pressing > >> C-c? > >> > >> Thanks, > >> Alex > > > > C-c works on your guile example for me on my Mac. Try `C-\’. > > Hmmm... Neither does 'C-\' work on the guile example. It works on the > shell example though. > > I am running Debian with 'uname -a' being: > Linux debian 4.8.0-2-amd64 #1 SMP Debian 4.8.15-2 (2017-01-04) x86_64 GNU/Linux I see the same having a bit older debian and guile 2.0.11. Some experiments have shown that in such a case `guile' and `yes' do not react to SIGINT (which IIUC C-c produces) while handle SIGTERM correctly. -- Vladimir