bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] 2 Suggestions (bi-directional retry and user interrup


From: Florian Sedivy
Subject: Re: [Bug-ddrescue] 2 Suggestions (bi-directional retry and user interruption exit code)
Date: Sat, 22 Feb 2014 04:33:06 +0100

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]