From e1135e7c8c32cf726834db45ff32eaec8af48fd1 Mon Sep 17 00:00:00 2001 From: BenDroid Date: Tue, 24 Oct 2017 23:54:45 +0200 Subject: [PATCH] Reenabled restart in daemon for win/linux --- src/xmrigd.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/xmrigd.cpp b/src/xmrigd.cpp index 50c17e56..a8585e00 100644 --- a/src/xmrigd.cpp +++ b/src/xmrigd.cpp @@ -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 }