Change the last telnetd in the Telnet item in the /etc/inetd.conf file to Telnetd -K180 -K5 -N3. It means that the Telnet connection is idle for 180 seconds, and once a online query signal is sent every 5 seconds to the terminal. After three times, the Telnet connection is disconnected, and the Telnet connection is disconnected and deletes the corresponding process. This will not leave an extra process even if it is not properly shut down.