This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] support: Explain ignored failures of temporary file removal [BZ #21243]
- From: fweimer at redhat dot com (Florian Weimer)
- To: libc-alpha at sourceware dot org
- Date: Tue, 14 Mar 2017 15:35:53 +0100
- Subject: [PATCH] support: Explain ignored failures of temporary file removal [BZ #21243]
- Authentication-results: sourceware.org; auth=none
2017-03-14 Florian Weimer <fweimer@redhat.com>
[BZ #21243]
* support/temp_file.c (support_delete_temp_files): Add comment
about ignored errors.
diff --git a/support/temp_file.c b/support/temp_file.c
index f06647a..5950aec 100644
--- a/support/temp_file.c
+++ b/support/temp_file.c
@@ -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