From f49a30eba8bb9f352637c3c24138074bbe3f5555 Mon Sep 17 00:00:00 2001 From: Wanlong Gao Date: Wed, 28 Dec 2011 17:59:38 +0800 Subject: [PATCH] fish: fix the Ctrl-\ causes guestfish to abort bug(RHBZ#596761) Handle SIGQUIT by guestfish, so that it can't be terminated. Signed-off-by: Wanlong Gao --- fish/fish.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fish/fish.c b/fish/fish.c index efd6b0b..b782b7c 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -402,6 +402,7 @@ main (int argc, char *argv[]) sa.sa_handler = user_cancel; sa.sa_flags = SA_RESTART; sigaction (SIGINT, &sa, NULL); + sigaction (SIGQUIT, &sa, NULL); guestfs_set_pgroup (g, 1); } -- 1.8.3.1