Reenabled restart in daemon for win/linux

This commit is contained in:
BenDroid 2017-10-24 23:54:45 +02:00
parent f9749acccf
commit e1135e7c8c

View file

@ -47,9 +47,11 @@ int main(int argc, char **argv) {
int status = 0;
//do {
do {
status = system(xmrigMinerPath.c_str());
printf("Status: %d", status);
//} while (WEXITSTATUS(status) == EINTR);
#ifdef WIN32
} while (status == EINTR);
#else
} while (WEXITSTATUS(status) == EINTR);
#endif
}