aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-cancel1.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-cancel1.c')
-rw-r--r--nptl/tst-cancel1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nptl/tst-cancel1.c b/nptl/tst-cancel1.c
index 654c8a7a56..690319d8c7 100644
--- a/nptl/tst-cancel1.c
+++ b/nptl/tst-cancel1.c
@@ -63,6 +63,8 @@ tf (void *arg)
printf ("setcanceltype failed: %s\n", strerror (err));
exit (1);
}
+ /* The following code is not standard compliant: the mutex functions
+ must not be called with asynchronous cancellation enabled. */
err = pthread_mutex_unlock (&m2);
if (err != 0)