Changeset: c85755295edd for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c85755295edd
Modified Files:
gdk/gdk_system.c
Branch: Jun2016
Log Message:
pthread_create returns 0 on success and non-zero on failure.
I.e. not necessarily < 0.
diffs (12 lines):
diff --git a/gdk/gdk_system.c b/gdk/gdk_system.c
--- a/gdk/gdk_system.c
+++ b/gdk/gdk_system.c
@@ -546,7 +546,7 @@ MT_create_thread(MT_Id *t, void (*f) (vo
#ifdef HAVE_PTHREAD_SIGMASK
MT_thread_sigmask(&orig_mask, NULL);
#endif
- return ret;
+ return ret ? -1 : 0;
}
void
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list