Fix daemonize in *nix

This commit is contained in:
z3APA3A committed 2016-08-23 14:19:27 +03:00
1 parent 4e4f71712d
commit b242d6df8c
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -17,6 +17,13 @@ int randomizer = 1;
#ifndef _WIN32
pthread_attr_t pa;
void daemonize(void){
if(fork()) exit(0);
else setsid();
}
#endif
unsigned char **stringtable = NULL;