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.
_______________________________________________
Bug-ddrescue mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-ddrescue