fix(feuille.c): added some space around important blocks
This commit is contained in:
parent
e9009b9198
commit
d2c3270b4b
1 changed files with 5 additions and 0 deletions
|
@ -218,6 +218,7 @@ int main(int argc, char *argv[])
|
|||
if (argc != 0)
|
||||
usage(1);
|
||||
|
||||
|
||||
/* output folder checks */
|
||||
char path[PATH_MAX];
|
||||
|
||||
|
@ -245,6 +246,7 @@ int main(int argc, char *argv[])
|
|||
int uid = user->pw_uid;
|
||||
int gid = user->pw_gid;
|
||||
|
||||
|
||||
/* server socket creation (before dropping root permissions) */
|
||||
verbose(1, "initializing server socket...");
|
||||
|
||||
|
@ -260,6 +262,7 @@ int main(int argc, char *argv[])
|
|||
daemon(1, 0);
|
||||
}
|
||||
|
||||
|
||||
/* chroot and drop root permissions */
|
||||
if (getuid() == 0) {
|
||||
verbose(2, "setting owner of `%s' to `%s'...", path, settings.user);
|
||||
|
@ -286,6 +289,7 @@ int main(int argc, char *argv[])
|
|||
pledge("proc stdio rpath wpath cpath inet", "stdio rpath wpath cpath inet");
|
||||
#endif
|
||||
|
||||
|
||||
/* create a thread pool for incoming connections */
|
||||
verbose(1, "initializing worker pool...");
|
||||
|
||||
|
@ -368,6 +372,7 @@ int main(int argc, char *argv[])
|
|||
die(errno, "Could not initialize worker n. %d: %s\n", i, strerror(errno));
|
||||
}
|
||||
|
||||
|
||||
sleep(1);
|
||||
|
||||
verbose(1, "all workers have been initialized.");
|
||||
|
|
Reference in a new issue