I have a character based unix application that is launched by a
users .login script. We're noticing that if the app is waiting for the
user to enter data and IF the telnet client dies, the process that was
waiting for input, doesn't die.
Any ideas as to why?
My understanding is that when unix (AIX) detects (somehow) the client
dying, child processes of are supposed to get a HUP signal and the
default action is to exit. I don't believe the app is ignoring the HUP
signal, because this also happens outside of the app. The .login that
invokes the app, prompts for a number, before launching the app. (The
app is not exec'd).
The .login doesn't do anything special about dealing with the HUP
signal. It prompts for a number, then runs another shell script which
inturn starts the app. If telnet dies when the .login is sitting
waiting for input, the tcsh doesn't die.
All this hinders the app from getting restarted after the client
restablishes a new telnet session.
My platform is AIX, app written in C, tcsh shell. The client is usually
a Telxon RF unit (wireless Radio Frequency) over ethernet. The RF unit
reports that it has lost it's network connection and will eventually
get rebooted and acquire a new telnet session, usually on a different
psuedo terminal device.
We've had to write a workaround to get the process killed from another
telnet session.
Any ideas and suggestions would be appreciated.
Thanks, Zoran.
Sent via Deja.com http://www.deja.com/
Before you buy.