]> git.ipfire.org Git - thirdparty/coreutils.git/commit
dd: be more careful about signal handling
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 May 2019 20:53:54 +0000 (13:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 May 2019 20:54:18 +0000 (13:54 -0700)
commit00d72e6122d37bbc32ef0e057c1e847fd8129133
tree6123c7c0f1e0e788852998c94d5045d22439d4e2
parent4c223ab4b6d5e507bcae0be463158d39533a98e9
dd: be more careful about signal handling

Problem reported by Hans Henrik Bergan (Bug#36007).
* NEWS: Mention this.
* src/dd.c (iclose, ifdatasync, ifstat, ifsync):
New functions, which are more careful about SIGINT.
(cleanup): Use iclose instead of close.
(finish_up): Process signals first.
(skip, dd_copy, main): Use ifstat instead of fstat.
(dd_copy): Use ifdatasync and ifsync instead of fdatasync and fsync.
NEWS
src/dd.c