X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=BOINC%20software%2FBOINC%20client%20apps%2Fdistrrtgen_cuda%2Fdistrrtgen.cpp;fp=BOINC%20software%2FBOINC%20client%20apps%2Fdistrrtgen_cuda%2Fdistrrtgen.cpp;h=3ab24dbbd61120779d26f5e183048bf78e5db0a4;hb=00282114b5d4c186a2767318628d21f9ca3953b6;hp=9ed924ea062b26654e55847952e206f98a0e2125;hpb=683eeaa26cde6b9faa7600497da5896319583692;p=freerainbowtables diff --git a/BOINC software/BOINC client apps/distrrtgen_cuda/distrrtgen.cpp b/BOINC software/BOINC client apps/distrrtgen_cuda/distrrtgen.cpp index 9ed924e..3ab24db 100644 --- a/BOINC software/BOINC client apps/distrrtgen_cuda/distrrtgen.cpp +++ b/BOINC software/BOINC client apps/distrrtgen_cuda/distrrtgen.cpp @@ -56,13 +56,13 @@ #include "filesys.h" #include "boinc_api.h" #include "Public.h" -// Rainbowcrack code -#include "ChainWalkContext.h" //typedef unsigned int uint32; //typedef unsigned __int64 uint64; #include "rcuda.h" #include "rcuda_ext.h" +#define EXIT_CODE_TEMP_SLEEP -20 + using std::string; @@ -137,6 +137,9 @@ int main(int argc, char **argv) { // http://bolt.berkeley.edu/trac/changeset/22382 #ifdef _WIN32 boinc_temporary_exit(60); + #else + sleep(60); + exit(EXIT_CODE_TEMP_SLEEP); #endif }