about summary refs log tree commit diff
path: root/nptl/tst-cancel4.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-27 08:17:46 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-27 08:17:46 +0000
commit7d7ff54cb9152548227f42e1cf7336447f48ec2a (patch)
treee1ddccb3779dab26b47cd5f78507feefb428c426 /nptl/tst-cancel4.c
parent7539c7ecfda06eeae987fc53815523a70938073a (diff)
downloadglibc-7d7ff54cb9152548227f42e1cf7336447f48ec2a.tar.gz
glibc-7d7ff54cb9152548227f42e1cf7336447f48ec2a.tar.xz
glibc-7d7ff54cb9152548227f42e1cf7336447f48ec2a.zip
Update.
2003-06-27  Ulrich Drepper  <drepper@redhat.com>

	* rt/Makefile (CFLAGS-librt-cancellation.c): Define.
Diffstat (limited to 'nptl/tst-cancel4.c')
-rw-r--r--nptl/tst-cancel4.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c
index 8b0b735ada..a8142d9768 100644
--- a/nptl/tst-cancel4.c
+++ b/nptl/tst-cancel4.c
@@ -1891,6 +1891,8 @@ tf_msgrcv (void *arg)
 	}
     }
 
+  ssize_t s;
+
   pthread_cleanup_push (cl, NULL);
 
   struct
@@ -1906,13 +1908,13 @@ tf_msgrcv (void *arg)
   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);
 }