diff options
Diffstat (limited to 'toys/pending/telnetd.c')
-rw-r--r-- | toys/pending/telnetd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/telnetd.c b/toys/pending/telnetd.c index 3c0f8e39..4198e63f 100644 --- a/toys/pending/telnetd.c +++ b/toys/pending/telnetd.c @@ -317,7 +317,7 @@ void telnetd_main(void) master_fd = listen_socket(); fcntl(master_fd, F_SETFD, FD_CLOEXEC); if (master_fd > TT.gmax_fd) TT.gmax_fd = master_fd; - if (!(toys.optflags & FLAG_F)) daemonize(); + if (!(toys.optflags & FLAG_F)) daemon(0, 0); } else { pty_fd = new_session(master_fd); //master_fd = 0 if (pty_fd > TT.gmax_fd) TT.gmax_fd = pty_fd; |