[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 1/2] block: Ignore close() failure in get_tmp_filename()
From: |
Kevin Wolf |
Subject: |
Re: [PATCH v6 1/2] block: Ignore close() failure in get_tmp_filename() |
Date: |
Fri, 21 Oct 2022 11:25:31 +0200 |
Am 10.10.2022 um 06:04 hat Bin Meng geschrieben:
> The temporary file has been created and is ready for use. Checking
> return value of close() does not seem useful. The file descriptor
> is almost certainly closed; see close(2) under "Dealing with error
> returns from close()".
>
> Let's simply ignore close() failure here.
>
> Suggested-by: Markus Armbruster <armbru@redhat.com>
> Signed-off-by: Bin Meng <bin.meng@windriver.com>
> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Thanks, series applied to the block branch.
Kevin