Permalink
Browse files

preventing webserver from forking

  • Loading branch information...
1 parent 6721607 commit 9c95974429fa0b015aecf44a0fecc9157c6ca679 Benjamin Kittridge committed Jan 10, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/ws.c
View
7 src/ws.c
@@ -88,9 +88,10 @@ int ws_start(char *service) {
printf("Unable to listen on socket\n");
return 0;
}
-
- if (fork())
- return 0;
+
+ printf("Listening on %s\n", service);
+ printf("Document root is %s\n", ws_path);
+ printf("Press Ctrl-C to exit\n");
signal(SIGCHLD, SIG_IGN);

0 comments on commit 9c95974

Please sign in to comment.