Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 25 Aug 2003 17:30:35 +0000 (17:30 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 25 Aug 2003 17:30:35 +0000 (17:30 +0000)
2003-08-25  Ulrich Drepper  <drepper@redhat.com>

* tst-cancel4.c (do_test): Also unlink tempfname and remove
tempmsg in first loop.

nptl/ChangeLog
nptl/tst-cancel4.c

index 1233a9d..4d291ea 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-25  Ulrich Drepper  <drepper@redhat.com>
+
+       * tst-cancel4.c (do_test): Also unlink tempfname and remove
+       tempmsg in first loop.
+
 2003-08-18  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/unix/sysv/linux/bits/posix_opt.h: Define
index 19e1baf..d6d9f69 100644 (file)
@@ -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)