unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Vladimir Zhbanov <vzhbanov@gmail.com>
To: guile-user@gnu.org
Subject: Re: C-c in guile
Date: Mon, 23 Jan 2017 19:05:39 +0300	[thread overview]
Message-ID: <20170123160539.GA15429@localhost.localdomain> (raw)
In-Reply-To: <87lgu3h9eg.fsf@gmail.com>

On Sun, Jan 22, 2017 at 02:54:31PM +0800, Alex Vong wrote:
> Matt Wette <matt.wette@gmail.com> writes:
> 
> >> On Jan 21, 2017, at 3:55 AM, Alex Vong <alexvong1995@gmail.com> 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



  reply	other threads:[~2017-01-23 16:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-21 11:55 C-c in guile Alex Vong
2017-01-21 14:53 ` Matt Wette
2017-01-22  6:54   ` Alex Vong
2017-01-23 16:05     ` Vladimir Zhbanov [this message]
2017-02-27 19:49 ` Andy Wingo
2017-03-01 16:03   ` Alex Vong
2017-05-15 17:46 ` Alex Vong

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=20170123160539.GA15429@localhost.localdomain \
    --to=vzhbanov@gmail.com \
    --cc=guile-user@gnu.org \
    /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).