X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sources%2Fwwwd.c;h=f144eb0bcaff90face8eb8a429a2c5ccddc52f3d;hp=9fceda5330c020cf5635f43f2a36bdb914e56b76;hb=e0210adeab0125ab0a799fc4e45dd62283abd03f;hpb=d5df702be171519375f3e260cffb7ee93ab656f4 diff --git a/sources/wwwd.c b/sources/wwwd.c index 9fceda5..f144eb0 100644 --- 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; - int waiting = 0; int compat = 0; int reroot = 0; char * rootdir; @@ -101,11 +100,7 @@ int main(int argc, char *argv[]) case 'd': debugging = 1; break; - case 'w': - waiting = strtol(optarg, NULL, 10); - break; case 'r': - printf("chroot\n"); reroot = 1; rootdir = optarg; break; @@ -135,7 +130,6 @@ int main(int argc, char *argv[]) } /* chroot if requested */ if (reroot) { - printf("chroot to %s\n", rootdir); 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); } - if (waiting) sleep(waiting); /* handle echo to client */ while (1) { /* accept connection */