Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1489588
 поиск   регистрация   авторизация 
 
Группа :: Сети/IRC
Пакет: xchat

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: xchat-2.0.9-alt-hmepas-nohup.patch


--- 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 <gtk/gtkinvisible.h>
 #endif
 
+#ifdef NOHUP
+#include <signal.h>
+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
+		
 	if (argc > 1)
 	{
 		if (!strcasecmp (argv[1], "-v") || !strcasecmp (argv[1], "--version"))
 
design & coding: Vladimir Lettiev aka crux © 2004-2005