Skip to content

Commit

Permalink
fix in webserver
Browse files Browse the repository at this point in the history
  • Loading branch information
on4akh committed May 10, 2014
1 parent ab13f2c commit 1675218
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ int main(int argc, char**argv)
{

// Our process ID and Session ID
/*pid_t pid,sid;
pid_t pid,sid;

printf("Becoming a daemon...\n");
// Fork off the parent process
Expand All @@ -598,10 +598,10 @@ int main(int argc, char**argv)

// Change the file mode mask
umask(0);
*/

setlogmask (LOG_UPTO (LOG_NOTICE));
openlog("Master-server", LOG_CONS | LOG_PID | LOG_NDELAY, LOG_LOCAL1);
/*

// Create a new SID for the child process
sid = setsid();
if (sid < 0) {
Expand All @@ -613,7 +613,7 @@ int main(int argc, char**argv)
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
*/

pthread_t thread;
int port;
int dbInit;
Expand Down

0 comments on commit 1675218

Please sign in to comment.