summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/sys/daemon.c2
-rw-r--r--daemon/bpop3d/bpop3d.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/common/sys/daemon.c b/common/sys/daemon.c
index 829d0a9c..4d925c1c 100644
--- a/common/sys/daemon.c
+++ b/common/sys/daemon.c
@@ -66,9 +66,11 @@ daemonize(const char * pidfile, const char * logfile)
}
}
+#if 0
fd = getdtablesize();
while (fd > 2)
close(--fd);
+#endif
if ((fd = open("/dev/null", O_RDWR)) < 0) {
perror("Can't open /dev/null");
diff --git a/daemon/bpop3d/bpop3d.c b/daemon/bpop3d/bpop3d.c
index 58ab8c4a..54923002 100644
--- a/daemon/bpop3d/bpop3d.c
+++ b/daemon/bpop3d/bpop3d.c
@@ -253,6 +253,7 @@ int main(int argc, char *argv[])
switch (ch) {
case 'i':
inetd = 1;
+ break;
case 'l':
iface_ip = optarg;
break;