Tolta opzione inutile dal web server e messa opzione per far andare bene
[gapil.git] / sources / wwwd.c
index 9fceda5330c020cf5635f43f2a36bdb914e56b76..f144eb0bcaff90face8eb8a429a2c5ccddc52f3d 100644 (file)
@@ -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 */