telnetd for nommu
Meihui Fan
mhfan at hhcn.com
Fri Mar 23 14:29:07 UTC 2007
Hi,
The telnetd.c will not be compiled if enabled on a nommu platform as
blackfin. The error message is:
"undefined reference to `xdaeomon'"
The solution is learned from inetd.c. A small patch inlined as following:
Index: telnetd.c
===================================================================
--- telnetd.c (revision 18212)
+++ telnetd.c (working copy)
@@ -415,7 +415,11 @@
master_fd = create_and_bind_stream_or_die(opt_bindaddr,
portnbr);
xlisten(master_fd, 1);
if (!(opt & OPT_FOREGROUND))
+#ifndef BB_NOMMU
xdaemon(0, 0);
+#else
+ vfork_daemon_rexec (0, 0, argc, argv, "-f");
+#endif
}
#else
sessions = make_new_session();
--
Best Regards,
范美辉 (Meihui Fan)
Chief Engineer
Software Engineering Department
Tel: +86-551-5333155/156/157,5325173
FAX: +86-551-5325323
Products Info. : http://www.hhcn.com
Tech. Support : http://bbs.hhcn.com
HHTech : An Embedded Linux Tech. Provider in Mainland China
More information about the busybox
mailing list