short libpthread patch

Kazuaki Oda kaakun at highway.ne.jp
Sat Apr 26 07:52:54 PDT 2003


Hi, all.

I'm not a hacker, but following patch resolves a signal delivering
problem of my short test program.

Is it correct?


diff -cr libpthread.orig/thread/thr_sig.c libpthread/thread/thr_sig.c
*** libpthread.orig/thread/thr_sig.c    Fri Apr 18 14:04:16 2003
--- libpthread/thread/thr_sig.c Sat Apr 26 23:37:20 2003
***************
*** 291,297 ****
                 * Grab the next thread before possibly destroying
                 * the link entry.
                 */
!               pthread_next = TAILQ_NEXT(pthread, pqe);

                if ((pthread->state == PS_SIGWAIT) &&
                    sigismember(pthread->data.sigwait, sig)) {
--- 291,297 ----
                 * Grab the next thread before possibly destroying
                 * the link entry.
                 */
!               pthread_next = TAILQ_NEXT(pthread, tle);

                if ((pthread->state == PS_SIGWAIT) &&
                    sigismember(pthread->data.sigwait, sig)) {


--
Kazuaki Oda


More information about the freebsd-threads mailing list