+2003-06-27 Ulrich Drepper <drepper@redhat.com>
+
+ * rt/Makefile (CFLAGS-librt-cancellation.c): Define.
+
2003-06-26 Roland McGrath <roland@frob.com>
* sysdeps/mach/configure.in: Barf rather than define NO_CREATION_TIME.
+2003-06-27 Ulrich Drepper <drepper@redhat.com>
+
+ * tst-cancel4.c (tf_msgrcv): Strengthen test against valid
+ premature returns a bit more.
+
2003-06-26 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/librt-cancellation.c: Move __pthread_unwind
.type __condvar_tw_cleanup3, @function
__condvar_tw_cleanup3:
- leal wakeup_seq(%edx), %ebx # XXX Is this correct? %edx preserved?
+ movl 40(%esp), %ebx
.LSbl5:
+ jmp __condvar_tw_cleanup
.size __condvar_tw_cleanup3, .-__condvar_tw_cleanup3
.type __condvar_tw_cleanup2, @function
__condvar_tw_cleanup2:
}
}
+ ssize_t s;
+
pthread_cleanup_push (cl, NULL);
struct
do
{
errno = 0;
- msgrcv (tempmsg, (struct msgbuf *) &m, 10, randnr, 0);
+ s = msgrcv (tempmsg, (struct msgbuf *) &m, 10, randnr, 0);
}
- while (errno == EIDRM);
+ while (errno == EIDRM || errno == EINTR);
pthread_cleanup_pop (0);
- printf ("%s: msgrcv returned\n", __FUNCTION__);
+ printf ("%s: msgrcv returned %zd with errno = %m\n", __FUNCTION__, s);
exit (1);
}
CFLAGS-aio_suspend.c = -fexceptions
CFLAGS-clock_nanosleep.c = -fexceptions -fasynchronous-unwind-tables
+CFLAGS-librt-cancellation.c = -fasynchronous-unwind-tables
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
# This ensures they will load libc.so for needed symbols if loaded by