summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2013-04-20 01:36:08 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2013-04-20 01:36:18 +0200
commit03e2bfd77dfe86c6b49a9f19eee008c88085bce9 (patch)
tree6adcd4fd0c9790b2d36426691eaa25fcbf93862e
parentFix up rlimit crash and close crash. (diff)
downloadmulder-listen-daemon-03e2bfd77dfe86c6b49a9f19eee008c88085bce9.tar.xz
mulder-listen-daemon-03e2bfd77dfe86c6b49a9f19eee008c88085bce9.zip
Be proper qotd daemon.
-rw-r--r--mulderd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mulderd.c b/mulderd.c
index ef31b54..2c06b18 100644
--- a/mulderd.c
+++ b/mulderd.c
@@ -94,7 +94,7 @@ int main(int argc, char *argv[])
time_t now;
socklen_t connection_addr_len;
pid_t child;
- int daemonize = 0, option_index = 0, port = 9911, connection_file = 0, option;
+ int daemonize = 0, option_index = 0, port = 17, connection_file = 0, option;
char *pid_file = 0, *connection_log = 0, *time_str;
FILE *pidfile;
@@ -136,7 +136,7 @@ int main(int argc, char *argv[])
fprintf(stderr, " -f, --foreground run in the foreground (default)\n");
fprintf(stderr, " -P FILE, --pid-file=FILE write pid of listener process to FILE\n");
fprintf(stderr, " -l FILE, --log-file=FILE write connection log to FILE instead of stdout/stderr\n");
- fprintf(stderr, " -p PORT, --port=PORT listen on port PORT (default=9911)\n");
+ fprintf(stderr, " -p PORT, --port=PORT listen on port PORT (default=17)\n");
fprintf(stderr, " -h, --help display this message\n");
return option == 'h' ? EXIT_SUCCESS : EXIT_FAILURE;
}