repl: Do not exit repl on SIGINT.

* guix/scripts/repl.scm (guix-repl): Do not exit repl on SIGINT.
This commit is contained in:
Oleg Pykhalov 2018-11-22 03:06:51 +03:00
parent 3b160bdccf
commit 3133d678a8
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C

View file

@ -188,7 +188,10 @@ (define opts
(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