ctdlsvc now closes fd 0 in addition to fd 1 and 2
authorArt Cancro <ajc@citadel.org>
Wed, 29 Nov 2006 04:15:47 +0000 (04:15 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 29 Nov 2006 04:15:47 +0000 (04:15 +0000)
webcit/ctdlsvc.c

index 69f60327c898f226a23a7468d5e5294ba4ecddca..2cadf192d1fd233d6ffa9b375f6ed4d33c64a6cf 100644 (file)
@@ -44,6 +44,7 @@ int main(int argc, char **argv)
                exit(1);
        }
 
+       close(0);
        close(1);
        close(2);
        signal(SIGHUP, SIG_IGN);