> > That is kinda a bug, you can't run any of the deamons like that; you > need to start them from inetd. telnetd and friends should spit out > something more helpful than just a exit status of 1 in this and all > similar cases; not sure how to do that sanely... > > Anyone got any ideas? >
I think ftpd has a mode --deamon when it can be launch without inetd. Not sure about telnet/rlogind etc ... But if you want to be more user friendly ... you could do something like isatty(3) on the stdio and fail with a gracefull message.... will not catch pipes 8-( Or when the getpeername(3) fails with ENOTSOCK spit out a message about using the --daemon or running with inetd. -- alain _______________________________________________ Bug-inetutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-inetutils
