Skip to content
Snippets Groups Projects
Commit 8c86342c authored by rswindell's avatar rswindell
Browse files

fcopy function (used by backup function) releases time-slices every 10 kbytes.

parent b4a7f8e9
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,7 @@ BOOL DLLCALL save_cfg(scfg_t* cfg, int backup_level)
static BOOL fcopy(char* src, char* dest)
{
int ch;
ulong count=0;
FILE* in;
FILE* out;
......@@ -96,6 +97,8 @@ static BOOL fcopy(char* src, char* dest)
if(ch==EOF)
break;
fputc(ch,out);
if(((count++)%(10*1024))==0)
SLEEP(1);
}
fclose(in);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment