Mailinglist Archive: opensuse (4053 mails)

< Previous Next >
How to detect lost telnet client connection
  • From: "Ivan Gustin" <ivan.gustin@xxxxxxxxx>
  • Date: Wed, 1 Aug 2001 08:01:41 +0200
  • Message-id: <006101c11a52$081ddda0$3264a8c0@xxxxxxxx>
SuSE 7.1 server dedicated to use DOS FoxPro program. Users (from local LAN
and remote users over ISDN ppp links) uses telnet to connect to Linux
server, then DosEmu is automaticaly started and FoxPro 2.6 DOS accounting
program. Everything works fine with this.

But, when telnet client lost connection due to any reason (Windows freeze,
power off PC, closing telnet client program without logout...), DosEmu
remains active (with FoxPro program), hangs on, eating CPU resources (due to
a DOS stupid idle routine). Easy can happen that there is 5 live and 5 dead
DosEmu processes, and all use CPU. I got to kill such dead processes (with
lost client connection), because them slows down whole server.

So, the problem is: how to detect such dead processes?!? The only different
thing between alive and dead situation is lost client connection. How can I
detect it? (some workstation can have few telnet connection, some of them
alive, and some dead).

I would appreciate any idea and suggestion.

Bye,
Ivan Gustin



< Previous Next >
References