Philippe Gerum wrote:
 > The second bug causing spurious RT32 signals to be notified is more of a
 > GDB issue

When running the attached program inside gdb, the RT32 signal seems to
be used as the asynchronous cancellation signal. Or at least when
running with libthread_db.so.

-- 


                                            Gilles Chanteperdrix.
#include <pthread.h>

void *routine(void *cookie)
{
        pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);

        for (;;)
                ;

        return cookie;
}

int main(int argc, const char *argv[])
{
        pthread_t tid;
        pthread_create(&tid, NULL, routine, NULL);
        pthread_cancel(tid);
        pthread_join(tid, NULL);

        return 0;
}
_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to