bug#36007: double close() of of=file if receiving SIGINT during fdatasync()

2019-05-30 Thread Paul Eggert
Thanks for reporting the bug. I installed the attached patch into the development version on Savannah, to fix the bug you reported along with a closely related bug that I found when looking into your problem. Please give this patch a try at your convenience. >From

bug#36007: double close() of of=file if receiving SIGINT during fdatasync()

2019-05-30 Thread Hans Henrik Bergan
i think there is a double-close() bug that causes dd to try to close input file twice if it receives a SIGINT during fdatasync(), it seems easy to reproduce on a slow block device (the issue was noticed on a 5400RPM harddrive), but i have not been able to reproduce it on a SSD (likely because