Jonah
(replying to Jernej Simončič �)
@jernej__s @hikari Do you know of the bug/feature which might cause you to lose your data when you send signals to dd?
It's cursed! If you specify count, then unless you also give it iconv=fullblock, dd copies the specified number of blocks using read(2)'s of the specified size. When a signal arrives while reading, it causes the read to be cut short. The following write will also be short... But it will still count as a full block. So dd will fail to transfer count*blocksize bytes.
Saagar Jha
(replying to Jonah)
@vjon @jernej__s @hikari This seems really bad for software that specifically invites you to signal it