I am working with a embedded linux unit, here's my situation:
I use my computer(Ubuntu 16.04 machine) to telnet onto a unit issuing
reboot command, then the unit reboots successfully.
Here comes the problem, I expect the telnet will return and prompt
Connection closed by foreign host. when the unit shuts itself down. But it doesn't in time, on the contrary, it prompts
Connection closed by foreign host. only after
I hit return key from my computer AND
after/during the unit booting
When I do the same thing to other unit from my computer, there's no such problem.
Why is that? Is this a problem of telnet, my computer or the embedded unit? How can I fix it?