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