diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-08-25 17:30:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-08-25 17:30:35 +0000 |
commit | bb606fbeafd49b762929393c1b21e629a09322c9 (patch) | |
tree | 00aef8fbbc02b7cea97eb93c629368ea60347324 /nptl/tst-cancel4.c | |
parent | 544f3cdfff81228c079df98367590d5bb05391f0 (diff) | |
download | glibc-bb606fbeafd49b762929393c1b21e629a09322c9.zip glibc-bb606fbeafd49b762929393c1b21e629a09322c9.tar.gz glibc-bb606fbeafd49b762929393c1b21e629a09322c9.tar.bz2 |
Update.
2003-08-25 Ulrich Drepper <drepper@redhat.com>
* tst-cancel4.c (do_test): Also unlink tempfname and remove
tempmsg in first loop.
Diffstat (limited to 'nptl/tst-cancel4.c')
-rw-r--r-- | nptl/tst-cancel4.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c index 19e1baf..d6d9f69 100644 --- a/nptl/tst-cancel4.c +++ b/nptl/tst-cancel4.c @@ -2119,8 +2119,17 @@ do_test (void) close (tempfd2); tempfd2 = -1; } - free (tempfname); - tempfname = NULL; + if (tempfname != NULL) + { + unlink (tempfname); + free (tempfname); + tempfname = NULL; + } + if (tempmsg != -1) + { + msgctl (tempmsg, IPC_RMID, NULL); + tempmsg = -1; + } } for (cnt = 0; cnt < ntest_tf; ++cnt) |