support: Explain ignored failures of temporary file removal [BZ #21243]

This commit is contained in:
Florian Weimer 2017-03-15 13:14:54 +01:00
parent ed3ea040ba
commit 2bda2d820d
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-03-15 Florian Weimer <fweimer@redhat.com>
[BZ #21243]
* support/temp_file.c (support_delete_temp_files): Add comment
about ignored errors.
2017-03-15 Florian Weimer <fweimer@redhat.com>
[BZ #21244]

View File

@ -99,7 +99,10 @@ support_delete_temp_files (void)
{
while (temp_name_list != NULL)
{
remove (temp_name_list->name);
/* For some tests, the temporary file removal runs multiple
times (in the parent processes and the subprocess), so do not
report a failed removal attempt. */
(void) remove (temp_name_list->name);
free (temp_name_list->name);
struct temp_name_list *next