aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
Diffstat (limited to 'nptl')
-rw-r--r--nptl/tst-cancel7.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nptl/tst-cancel7.c b/nptl/tst-cancel7.c
index 574429098c..3f874c2a3c 100644
--- a/nptl/tst-cancel7.c
+++ b/nptl/tst-cancel7.c
@@ -38,6 +38,8 @@ static char *semfilename;
static sem_t *sem;
+static void do_cleanup (void);
+
static void *
tf (void *arg)
{
@@ -108,6 +110,8 @@ do_prepare (int argc, char *argv[])
xwrite (fd, " ", 1);
xclose (fd);
+
+ atexit (do_cleanup);
}