diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-04 11:22:27 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-04 11:22:27 +0800 |
commit | f43e02ef9d5ec06c7749e789f938b5b8a95d149e (patch) | |
tree | cf56565ef6cbf1c1a77690cd1ae9e83399b9a615 /net-p2p/dctc-gui/files | |
parent | 09c97babd10dc22afe3b9dc54f0350d6c4356a83 (diff) | |
download | marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.gz marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.bz2 marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.lz marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.xz marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.tar.zst marcuscom-ports-f43e02ef9d5ec06c7749e789f938b5b8a95d149e.zip |
share/gnome/ -> share/
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8810 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net-p2p/dctc-gui/files')
-rw-r--r-- | net-p2p/dctc-gui/files/patch-po_Makefile.in.in | 10 | ||||
-rw-r--r-- | net-p2p/dctc-gui/files/patch-src::callbacks.c | 12 | ||||
-rw-r--r-- | net-p2p/dctc-gui/files/patch-src::init_fnc.c | 12 | ||||
-rw-r--r-- | net-p2p/dctc-gui/files/patch-src::main.c | 36 | ||||
-rw-r--r-- | net-p2p/dctc-gui/files/sig_chld.c | 53 |
5 files changed, 123 insertions, 0 deletions
diff --git a/net-p2p/dctc-gui/files/patch-po_Makefile.in.in b/net-p2p/dctc-gui/files/patch-po_Makefile.in.in new file mode 100644 index 000000000..b8b90a400 --- /dev/null +++ b/net-p2p/dctc-gui/files/patch-po_Makefile.in.in @@ -0,0 +1,10 @@ +--- po/Makefile.in.in.orig Wed Feb 4 13:19:32 2004 ++++ po/Makefile.in.in Wed Feb 4 13:19:41 2004 +@@ -87,6 +87,7 @@ + $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \ + --add-comments --keyword=_ --keyword=N_ \ + --files-from=$(srcdir)/POTFILES.in \ ++ --from-code=ISO-8859-1 \ + && test ! -f $(PACKAGE).po \ + || ( rm -f $(srcdir)/$(PACKAGE).pot \ + && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot ) diff --git a/net-p2p/dctc-gui/files/patch-src::callbacks.c b/net-p2p/dctc-gui/files/patch-src::callbacks.c new file mode 100644 index 000000000..3c0ad2c3e --- /dev/null +++ b/net-p2p/dctc-gui/files/patch-src::callbacks.c @@ -0,0 +1,12 @@ +--- src/callbacks.c.orig Sun Nov 17 21:18:28 2002 ++++ src/callbacks.c Sun Nov 17 21:19:26 2002 +@@ -14,7 +14,8 @@ + #include <dirent.h> + #include <gdk/gdkkeysyms.h> + #include <gdk/gdk.h> +-#include <linux/sem.h> ++#include <sys/ipc.h> ++#include <sys/sem.h> + #include <gnome.h> + #include <glib.h> + #include <time.h> diff --git a/net-p2p/dctc-gui/files/patch-src::init_fnc.c b/net-p2p/dctc-gui/files/patch-src::init_fnc.c new file mode 100644 index 000000000..3eca24060 --- /dev/null +++ b/net-p2p/dctc-gui/files/patch-src::init_fnc.c @@ -0,0 +1,12 @@ +--- src/init_fnc.c.orig Sun Nov 17 21:19:50 2002 ++++ src/init_fnc.c Sun Nov 17 21:20:39 2002 +@@ -12,7 +12,8 @@ + #include <sys/types.h> + #include <sys/stat.h> + #include <sys/wait.h> +-#include <linux/sem.h> /* for the value of SEMVMX */ ++#include <sys/ipc.h> ++#include <sys/sem.h> /* for the value of SEMVMX */ + #include <dirent.h> + #include <string.h> + #include <errno.h> diff --git a/net-p2p/dctc-gui/files/patch-src::main.c b/net-p2p/dctc-gui/files/patch-src::main.c new file mode 100644 index 000000000..f530ccac3 --- /dev/null +++ b/net-p2p/dctc-gui/files/patch-src::main.c @@ -0,0 +1,36 @@ +--- src/main.c.orig Mon Nov 18 23:53:50 2002 ++++ src/main.c Mon Nov 18 23:55:01 2002 +@@ -43,6 +43,9 @@ + GtkWidget *done_popup=NULL; + GtkWidget *fav_popup=NULL; + ++/* sigchld handling */ ++extern void sig_chld(int); ++ + /* this string is "$HOME/.dctc" */ + GString *dctc_main_dir=NULL; + +@@ -289,11 +292,9 @@ + sigset_t set; + + /* ignore SIGPIPE */ +- /* ignore SIGCHLD */ + /* ignore SIGHUP */ + sigemptyset(&set); + sigaddset(&set,SIGPIPE); +- sigaddset(&set,SIGCHLD); + sigaddset(&set,SIGHUP); + act.sa_handler=SIG_IGN; + act.sa_mask=set; +@@ -301,8 +302,10 @@ + + sigprocmask(SIG_UNBLOCK,&set,NULL); + sigaction(SIGPIPE,&act,NULL); +- sigaction(SIGCHLD,&act,NULL); + sigaction(SIGHUP,&act,NULL); ++ ++ /* handle SIGCHLD */ ++ signal(SIGCHLD, sig_chld); /* Prevents zombies */ + } + + static void start_dctc_client_from_huburl(char *dchub_url,char *profile) diff --git a/net-p2p/dctc-gui/files/sig_chld.c b/net-p2p/dctc-gui/files/sig_chld.c new file mode 100644 index 000000000..74b4a4afc --- /dev/null +++ b/net-p2p/dctc-gui/files/sig_chld.c @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2000, 2001, 2002 + * Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD + */ + +#include <sys/types.h> +#include <sys/wait.h> +/* +#include <sys/time.h> +#include <sys/resource.h> +*/ + +/* + * SIGCHLD handler + * + * Let's take care of our children. + * Otherwise, they may get involved with bad ppl + * and become zombies. + */ +void +sig_chld(int signo) +{ + pid_t pid; + int stat; + + while ( (pid = waitpid(-1, &stat, WNOHANG)) > 0); + + return; +} |