guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-c in guile


From: Vladimir Zhbanov
Subject: Re: C-c in guile
Date: Mon, 23 Jan 2017 19:05:39 +0300
User-agent: Mutt/1.5.23 (2014-03-12)

On Sun, Jan 22, 2017 at 02:54:31PM +0800, Alex Vong wrote:
> Matt Wette <address@hidden> writes:
> 
> >> On Jan 21, 2017, at 3:55 AM, Alex Vong <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]