mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 03:47:05 -05:00
Avoid Windows to go into sleep.
This commit is contained in:
parent
50834ee9f2
commit
3449f0afc1
6 changed files with 124 additions and 7 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include "elem.h"
|
||||
#include "state.h"
|
||||
#include "raid.h"
|
||||
#include "os.h"
|
||||
|
||||
/****************************************************************************/
|
||||
/* main */
|
||||
|
|
@ -140,6 +141,8 @@ int main(int argc, char* argv[])
|
|||
tommy_list filterlist;
|
||||
char* e;
|
||||
|
||||
os_init();
|
||||
|
||||
/* defaults */
|
||||
conf = CONF;
|
||||
verbose = 0;
|
||||
|
|
@ -342,6 +345,8 @@ int main(int argc, char* argv[])
|
|||
state_done(&state);
|
||||
tommy_list_foreach(&filterlist, (tommy_foreach_func*)filter_free);
|
||||
|
||||
os_done();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue