【发布时间】:2014-04-10 00:08:07
【问题描述】:
我正在为嵌入式busybox 系统编写一个应用程序,该系统允许TCP 连接,然后向所有连接的客户端发送消息。当我 telnet 到盒子并从 shell 提示符运行应用程序时,它工作得很好,但是从 inittab 启动它时我遇到了问题。它将启动,我可以使用一个客户端连接到应用程序。它成功地向该客户端发送了一条消息,然后崩溃。如果我在发送任何消息之前连接第二个客户端,它也会崩溃。同样,如果我从 shell 提示符启动它,一切都会完美运行。
日志中出现以下错误:
<11>Jan 1 00:02:49 tmmpd.bin: ERROR: recvMessage failed, recv IO error
<11>Jan 1 00:02:49 tmmpd.bin: Some other LTK TCP error 103. Closing connection 10
<11>Jan 1 00:02:49 tmmpd.bin: ERROR: recvMessage failed, recv IO error
<11>Jan 1 00:02:49 tmmpd.bin: Some other LTK TCP error 103. Closing connection 10
任何建议将不胜感激!
【问题讨论】: