[CentOS] help with a dd bug

Wed Mar 3 18:51:05 UTC 2010
Les Mikesell <lesmikesell at gmail.com>

On 3/3/2010 5:32 AM, Adrian Buciuman wrote:
> Hi,
>
> Can somebody reproduce this bug?
> http://bugs.centos.org/view.php?id=4220
>
> dd if=/dev/zero of=/dev/my_usb_stick_device_name bs=4096 count=10000
> can not be stopped with ctrl-c and is not responding to signals
>
> (count=10000 can be modified to give you enough time to test)
>
> The bug has been closed with the following comment:
> "As said: dd is in an uninteruptable state when you do that. This is not a bug"
> This is wrong, because IMHO dd should receive the signal after it
> finishes the current read()/write() and returns to user space, but
> this is not happening.
> How can I reopen the bug?

If you want to kill a process that doesn't want to be killed, just send 
it a -9.  If that doesn't do it, it really is stuck in the device driver.

-- 
   Les Mikesell
    lesmikesell at gmail.com