aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/tst-cancel16.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/pthread/tst-cancel16.c')
-rw-r--r--sysdeps/pthread/tst-cancel16.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/pthread/tst-cancel16.c b/sysdeps/pthread/tst-cancel16.c
index 511b9e1e91..d47c7c68cb 100644
--- a/sysdeps/pthread/tst-cancel16.c
+++ b/sysdeps/pthread/tst-cancel16.c
@@ -50,7 +50,11 @@ tf (void *arg)
pthread_cleanup_push (cl, NULL);
/* This call should never return. */
- (void) lockf (fd, F_LOCK, 0);
+ if (lockf (fd, F_LOCK, 0))
+ {
+ puts ("child thread: lockf failed");
+ exit (1);
+ }
pthread_cleanup_pop (0);