--- xchat-2.0.9/src/fe-gtk/Makefile.in.orig 2004-06-07 12:05:42 +0400 +++ xchat-2.0.9/src/fe-gtk/Makefile.in 2004-06-07 12:06:13 +0400 @@ -271,7 +271,7 @@ xchatlibdir = @xchatlibdir@ xchatsharedir = @xchatsharedir@ localedir = $(datadir)/locale -INCLUDES = $(GUI_CFLAGS) -DG_DISABLE_CAST_CHECKS -DLOCALEDIR=\"$(localedir)\" +INCLUDES = $(GUI_CFLAGS) -DG_DISABLE_CAST_CHECKS -DNOHUP -DLOCALEDIR=\"$(localedir)\" xchat_LDADD = ../common/libxchatcommon.a $(GUI_LIBS) EXTRA_DIST = makefile.msc \ about.h ascii.h banlist.h chanlist.h editlist.h fe-gtk.h fkeys.h \ --- xchat-2.0.9/src/fe-gtk/fe-gtk.c.orig 2004-06-07 12:06:25 +0400 +++ xchat-2.0.9/src/fe-gtk/fe-gtk.c 2004-06-07 12:08:26 +0400 @@ -56,6 +56,13 @@ #include #endif +#ifdef NOHUP +#include +void sighup_ignorer(int i) { + printf("SIGHUP ignored %i\n",i); +} +#endif + GdkPixmap *channelwin_pix; @@ -123,6 +130,10 @@ textdomain (PACKAGE); #endif +#ifdef NOHUP + signal(SIGHUP, sighup_ignorer); +#endif + context = g_option_context_new (NULL); g_option_context_add_main_entries (context, gopt_entries, PACKAGE); g_option_context_add_group (context, gtk_get_option_group (TRUE));