diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-20 01:36:08 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-20 01:36:18 +0200 |
commit | 03e2bfd77dfe86c6b49a9f19eee008c88085bce9 (patch) | |
tree | 6adcd4fd0c9790b2d36426691eaa25fcbf93862e | |
parent | Fix up rlimit crash and close crash. (diff) | |
download | mulder-listen-daemon-03e2bfd77dfe86c6b49a9f19eee008c88085bce9.tar.xz mulder-listen-daemon-03e2bfd77dfe86c6b49a9f19eee008c88085bce9.zip |
Be proper qotd daemon.
-rw-r--r-- | mulderd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |