projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tolta opzione inutile dal web server e messa opzione per far andare bene
[gapil.git]
/
sources
/
wwwd.c
diff --git
a/sources/wwwd.c
b/sources/wwwd.c
index 9fceda5330c020cf5635f43f2a36bdb914e56b76..f144eb0bcaff90face8eb8a429a2c5ccddc52f3d 100644
(file)
--- a/
sources/wwwd.c
+++ b/
sources/wwwd.c
@@
-68,7
+68,6
@@
int main(int argc, char *argv[])
* Variables definition
*/
int list_fd, conn_fd;
* Variables definition
*/
int list_fd, conn_fd;
- int waiting = 0;
int compat = 0;
int reroot = 0;
char * rootdir;
int compat = 0;
int reroot = 0;
char * rootdir;
@@
-101,11
+100,7
@@
int main(int argc, char *argv[])
case 'd':
debugging = 1;
break;
case 'd':
debugging = 1;
break;
- case 'w':
- waiting = strtol(optarg, NULL, 10);
- break;
case 'r':
case 'r':
- printf("chroot\n");
reroot = 1;
rootdir = optarg;
break;
reroot = 1;
rootdir = optarg;
break;
@@
-135,7
+130,6
@@
int main(int argc, char *argv[])
}
/* chroot if requested */
if (reroot) {
}
/* chroot if requested */
if (reroot) {
- printf("chroot to %s\n", rootdir);
if (chdir(rootdir)) {
perror("Cannot find directory to chroot");
exit(1);
if (chdir(rootdir)) {
perror("Cannot find directory to chroot");
exit(1);
@@
-166,7
+160,6
@@
int main(int argc, char *argv[])
PrintErr("listen error");
exit(1);
}
PrintErr("listen error");
exit(1);
}
- if (waiting) sleep(waiting);
/* handle echo to client */
while (1) {
/* accept connection */
/* handle echo to client */
while (1) {
/* accept connection */