Antonio Diaz Dia wrote:
> It is the safest option (in case someone uses 'status & 0xFF' as return 
> value), but it is quite a change to consider an user-finished run as an error.

Besides being practical for aborting scripts and loops (which SIGINT would also 
allow), I think it is also the right thing to do to treat user interruption as 
an error. Most tools I could think of that just "quit" on ctrl-c are those that 
would otherwise run forever, like ping e.g. In contrast to that every ddrescue 
run has a defined end that you hope to reach, namely when it prints 
"Finished!". A user interruption means it will not reach that goal, so the run 
is not user-finished, but user-aborted. To me that justifies an error-like 
exit. 

Florian

_______________________________________________
Bug-ddrescue mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-ddrescue

Reply via email to