Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Server handshakes with Unix

Status
Not open for further replies.
May 3, 2006
4
US
Whenever an end-user logs on to a Windows Server it creates a session id. As it is redirected to the Unix Host server, Unix creates a PID. If the session on the Windows times out or hangs, the windows session is "blown away"; but the PID on the Unix remains.

The kicker is that access to the Unix server is done using a common logon, so the PIDs are all the same.

Is there a way for the Unix server to kill a process when the Windows session id dies?
 
Well, the PID's are the same because of the common userid. This userid is assigned by the application as it enters the Unix host.

You are right, each session has a different PID, but share the common port, userid.
 
Thanks. Do the PIDs become <defunct> in a ps listing on the unix box?
 
sorry, Ken I am not well versed on the Unix. How do you mean <defunct>?
 
No problem Jeff, if you do a ps -ef on the system, do any of the processes in question have <defunct> in the last column of the listing? (you could try ps -ef | grep defunct just to list those, perhaps). This would mean that the parent of the process has died and the process in question then becomes a 'zombie'. It's not actually using up any resources, but they're notoriously difficult to kill without a reboot.

If this isn't the case, how are you identifying the processes whose Windows connection has died? Perhaps we can do something with that scenario. I'm leaving for lunch just now so it may be this afternoon (here!) that I can get back to you if you respond. Others feel free to join in!!
 
Thanks, Ken for all your help!!!!!!!

I am in a time crunch right now and have decided to wade through the technical side of Unix. What I have done is instructed the programmer to add script to the presentation screen that whenever a user exits out or closes the window to initiate a small script that sends a disconnect command to the web server which in turn will request a termination of the Unix PID.

Thanks, again for your help.

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top