From 8ce84d3544de2971b4be71b97e3cc7acc90ecc7e Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 20 Dec 2012 21:55:29 +0000 Subject: Return NULL from thread start function. --- filesystems/fuse-afpfs-ng/distinfo | 3 ++- filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c diff --git a/filesystems/fuse-afpfs-ng/distinfo b/filesystems/fuse-afpfs-ng/distinfo index 8b7338f1ad6..78adee37c6b 100644 --- a/filesystems/fuse-afpfs-ng/distinfo +++ b/filesystems/fuse-afpfs-ng/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.4 2009/02/23 12:58:26 tron Exp $ +$NetBSD: distinfo,v 1.5 2012/12/20 21:55:29 joerg Exp $ SHA1 (afpfs-ng-0.8.1.tar.bz2) = 3686d4d752052ea8e98841fcae748cb469991dbb RMD160 (afpfs-ng-0.8.1.tar.bz2) = 39d3e50ce38df188a7c90448b20f7e428027dc43 Size (afpfs-ng-0.8.1.tar.bz2) = 344014 bytes +SHA1 (patch-lib_loop.c) = ebd8120b1e27d353f4b4d0537cff32d6a21bb569 diff --git a/filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c b/filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c new file mode 100644 index 00000000000..43e9c53b930 --- /dev/null +++ b/filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c @@ -0,0 +1,22 @@ +$NetBSD: patch-lib_loop.c,v 1.1 2012/12/20 21:55:29 joerg Exp $ + +--- lib/loop.c.orig 2012-12-20 14:03:34.000000000 +0000 ++++ lib/loop.c +@@ -85,14 +85,15 @@ void signal_main_thread(void) + } + + static int ending=0; +-void * just_end_it_now(void * ignore) ++void *just_end_it_now(void * ignore) + { +- if (ending) return; ++ if (ending) return NULL; + ending=1; + if (libafpclient->forced_ending_hook) + libafpclient->forced_ending_hook(); + exit_program=2; + signal_main_thread(); ++ return NULL; + } + + /*This is a hack to handle a problem where the first pthread_kill doesnt' work*/ -- cgit v1.2.3