diff options
author | Wanlong Gao <gaowanlong@cn.fujitsu.com> | 2011-12-28 17:59:38 +0800 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-01-10 15:38:48 +0000 |
commit | 37d4f047b5a5b2b1e5fb0f9c3c155d1b9b8f8a51 (patch) | |
tree | 1a0bb2938c6546a7b357f8a9b7de6c509d0e338d | |
parent | 4d0887492198e25ea683b3a2ba68a759a8af0fab (diff) | |
download | libguestfs-37d4f047b5a5b2b1e5fb0f9c3c155d1b9b8f8a51.tar.gz libguestfs-37d4f047b5a5b2b1e5fb0f9c3c155d1b9b8f8a51.tar.xz libguestfs-37d4f047b5a5b2b1e5fb0f9c3c155d1b9b8f8a51.zip |
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 <gaowanlong@cn.fujitsu.com>
(cherry picked from commit f49a30eba8bb9f352637c3c24138074bbe3f5555)
-rw-r--r-- | fish/fish.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fish/fish.c b/fish/fish.c index c55f54b1..6d4eb4c3 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -401,6 +401,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); } |