hi. we're having problems with disconnecting a telnet connection. we have this custom-made shell that is run (this is run in /etc/passwd) everytime a successful telnet login occurs. but when we forcefully disconnect the telnet connection (forcefully as in not typing 'exit' in the command line) we notice that our shell is still running (typing 'ps ax' will show this) and that the shell's vmsize is increasing. after a few minutes the system would gradually slow down until it hangs. In this system we're using xinetd. we've tested our shell on another system using inetd, and the telnet and the shell disconnected cleanly. any ideas on how to resolve this issue? thanks
When the telnet connection is passed to the 'custom-made shell' it is up to the 'custom-made shell' to relinquish its hold on that instance. I would look at the shell code personally. There may also be a terminal issue with the local control keystrokes not being passed to the remote server also, depend what the host os is though.
Try running the shell locally, what happens when you exit? Does it still hang?
Do you have the loopback interface setup, does hosts file have the 127.0.0.1 localhost in it? Try adding the ip/hosts of the connecting clients?
HTH - just a list of random things I would check.
-- Thanks,
David
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________