From 8ae0b53b9fdc4c8dd5d8b60b05436d36ca1af137 Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 13 Dec 2015 10:42:26 +0100 Subject: [PATCH] sharedspice.c, fix `retval' parameter for `pthread_exit()' --- src/sharedspice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sharedspice.c b/src/sharedspice.c index 51de5fcaf..122bf8e59 100644 --- a/src/sharedspice.c +++ b/src/sharedspice.c @@ -1503,7 +1503,7 @@ ATTRIBUTE_NORETURN void shared_exit(int status) ngexit(status, FALSE, coquit, ng_ident, userptr); // finish and exit the worker thread #ifdef HAVE_LIBPTHREAD - pthread_exit(1); + pthread_exit(NULL); #elif defined _MSC_VER || defined __MINGW32__ _endthreadex(1); #endif