aboutsummaryrefslogtreecommitdiff
path: root/networking/telnetd.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:09:26 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-12 18:09:26 +0000
commit2c99851181a652358aa3ca58ef38c57e46ae02e4 (patch)
tree6893f7992748817b64ec66947adc2ca40e13fb8e /networking/telnetd.c
parentdac7ff15b7d32deeeef3d9665744fc5774c21d70 (diff)
downloadbusybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.gz
busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.tar.bz2
busybox-w32-2c99851181a652358aa3ca58ef38c57e46ae02e4.zip
- patch from Denis Vlasenko to add and use bb_xdaemon()
Diffstat (limited to 'networking/telnetd.c')
-rw-r--r--networking/telnetd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 3e4b42cfa..d53f56b14 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -1,4 +1,4 @@
1/* vi:set ts=4:*/ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * Simple telnet server 3 * Simple telnet server
4 * Bjorn Wesen, Axis Communications AB (bjornw@axis.com) 4 * Bjorn Wesen, Axis Communications AB (bjornw@axis.com)
@@ -469,9 +469,7 @@ telnetd_main(int argc, char **argv)
469 bb_perror_msg_and_die("listen"); 469 bb_perror_msg_and_die("listen");
470 } 470 }
471 471
472 if (daemon(0, 0) < 0) 472 bb_xdaemon(0, 0);
473 bb_perror_msg_and_die("daemon");
474
475 473
476 maxfd = master_fd; 474 maxfd = master_fd;
477#endif /* CONFIG_FEATURE_TELNETD_INETD */ 475#endif /* CONFIG_FEATURE_TELNETD_INETD */