From: Oleg Pykhalov <go.wigust@gmail.com>
To: 33466@debbugs.gnu.org
Subject: [bug#33466] [PATCH 1/2] repl: Do not exit repl on SIGINT.
Date: Thu, 22 Nov 2018 17:42:27 +0300 [thread overview]
Message-ID: <20181122144228.31573-1-go.wigust@gmail.com> (raw)
In-Reply-To: <20181122144007.30568-1-go.wigust@gmail.com>
* guix/scripts/repl.scm (guix-repl): Do not exit repl on SIGINT.
---
guix/scripts/repl.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index b157833a4..1a105f51e 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -188,7 +188,10 @@ call THUNK."
(save-module-excursion
(lambda ()
(set-current-module user-module)
- (start-repl))))
+ ;; Do not exit repl on SIGINT.
+ ((@@ (ice-9 top-repl) call-with-sigint)
+ (lambda ()
+ (start-repl))))))
((machine)
(machine-repl))
(else
--
2.19.1
next prev parent reply other threads:[~2018-11-22 14:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-22 14:40 [bug#33466] [PATCH 0/2] Improve guix repl Oleg Pykhalov
2018-11-22 14:42 ` Oleg Pykhalov [this message]
2018-11-22 14:42 ` [bug#33466] [PATCH 2/2] repl: Add 'colorized' and 'readline' support Oleg Pykhalov
2018-11-25 20:40 ` Ludovic Courtès
2018-12-01 20:48 ` Oleg Pykhalov
2018-12-02 17:38 ` Ludovic Courtès
2018-12-03 5:07 ` bug#33466: " Oleg Pykhalov
2018-11-25 20:39 ` [bug#33466] [PATCH 1/2] repl: Do not exit repl on SIGINT Ludovic Courtès
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://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181122144228.31573-1-go.wigust@gmail.com \
--to=go.wigust@gmail.com \
--cc=33466@debbugs.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).