X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Ffish.c;h=10f645f5ddea81954b361d2ece62c20f2fd8eea1;hb=HEAD;hp=3104c407b6158726085e441994a0e7d650b9e5c1;hpb=6146412f06c2f6f33c3ea7d571f16d4fe71dddb2;p=libguestfs.git diff --git a/fish/fish.c b/fish/fish.c index 3104c40..b782b7c 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -208,6 +208,7 @@ main (int argc, char *argv[]) int next_prepared_drive = 1; initialize_readline (); + init_event_handlers (); memset (&sa, 0, sizeof sa); sa.sa_handler = SIG_IGN; @@ -401,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); } @@ -547,6 +549,9 @@ main (int argc, char *argv[]) if (progress_bars) progress_bar_free (bar); + guestfs_close (g); + free_event_handlers (); + exit (EXIT_SUCCESS); }