Jernej Simončič �

(replying to Kanbaru 🌟 (one hikari of too many))

@hikari That's a new one for me – I usually ran while :; do sleep 10; killall -USR1 dd in another terminal to get progress.

2 replies →
2 replies

Kanbaru 🌟 (one hikari of too many)

(replying to Jernej Simončič �)

@jernej__s yeah i'm used to that song and dance but this is a lot nicer


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