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: Antonio Diaz Diaz
Subject: Re: [Bug-ddrescue] 2 Suggestions (bi-directional retry and user interruption exit code)
Date: Thu, 20 Feb 2014 18:52:24 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Scott D wrote:
I also did not realize that the method that I use in C to tell if ddrescue exited by termination does not work on all systems. I have revised my code to use WTERMSIG and WEXITSTATUS as opposed to the not so correct slop I had previously written. It works fine in Ubuntu. But I tested it on Fedora and on a Mac (in virtual machines), and it doesn't work on them. It would appear that Ubuntu carries over the WTERMSIG after ddrescue is terminated, but the other systems do not.

But, have you modified ddrescue to terminate by raising SIGINT when the user hits Ctrl-C?

If you have modified ddrescue and it does not work on all systems, I think the only way to tell if ddrescue was terminated by the user is to make it exit with a nonzero value.



reply via email to

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