On 2/25/2014 8:21 AM, Antonio Diaz Diaz wrote:
I forgot to add the line
#include <csignal>

You may also need a fake "return 0;" after the "std::raise( SIGINT );"

Remember that this patch is just a hack only good for a quick test. It is not correct code.
A very quick test on Fedora with the hacked code seemed to do the trick. Although I still don't have my code the proper way either.

So the compiler obviously needs the "return 0;" to be happy, but the program actually exits on the "std::raise( SIGINT );"? Curious thought, a normal exit will free memory and close open files that were missed by an inexperienced programmer like me. But will this style exit do the same?

Scott

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

Reply via email to