2003-08-25  Ulrich Drepper  <drepper@redhat.com>

	* tst-cancel4.c (do_test): Also unlink tempfname and remove
	tempmsg in first loop.
This commit is contained in:
Ulrich Drepper 2003-08-25 17:30:35 +00:00
parent 544f3cdfff
commit bb606fbeaf
2 changed files with 16 additions and 2 deletions

View 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

View File

@ -2119,9 +2119,18 @@ do_test (void)
close (tempfd2);
tempfd2 = -1;
}
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)
{