[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4469) thr_yield() returns nothing



Full_Name: Pierangelo Masarati
Version: HEAD,re23
OS: Solaris 8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (131.175.154.56)
Submitted by: ando


On (my) Solaris 8 the man page of thr_yield() says that it "... returns nothing
and does not set errno"; in thr_posix.c, however, the code looks like

#elif HAVE_THR_YIELD
        return thr_yield();

I assume

#elif HAVE_THR_YIELD
        thr_yield();
        return 0;

would be more appropriate.  Otherwise, the behavior is unpredictable when
LDAP_THREAD_DEBUG is defined.

p.