Changeset: dc08c65c18a5 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dc08c65c18a5 Modified Files: gdk/gdk_utils.c Branch: Nov2019 Log Message:
Some "errors" are just not important enough to stop processing for. diffs (20 lines): diff --git a/gdk/gdk_utils.c b/gdk/gdk_utils.c --- a/gdk/gdk_utils.c +++ b/gdk/gdk_utils.c @@ -1582,15 +1582,9 @@ THRcreate(void (*f) (void *), void *arg, .arg = arg, .thr = s, }; - len = snprintf(semname, sizeof(semname), "THRcreate%" PRIu64, (uint64_t) ATOMIC_INC(&ctr)); + len = snprintf(semname, sizeof(semname), "THRcreate%" PRIu64, (uint64_t) ATOMIC_INC(&ctr) % 1000000); if (len == -1 || len > (int) sizeof(semname)) { IODEBUG fprintf(stderr, "#THRcreate: semaphore name is too large\n"); - GDKerror("THRcreate: semaphore name is too large\n"); - GDKfree(t); - GDKfree(s->name); - s->name = NULL; - ATOMIC_SET(&s->pid, 0); /* deallocate */ - return 0; } MT_sema_init(&t->sem, 0, semname); if (MT_create_thread(&pid, THRstarter, t, d, name) != 0) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list