Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - SSH process launched becomes zombie and sftp session remains blocked...: Page 1 of 3 (3 Items)
   
SSH process launched becomes zombie and sftp session remains blocked...  
We have multithreaded application, one of the application thread used sftp for file transfer...so it launches a "sh" 
process, which inturn launches a "sftp" process and "sftp" inturn launches a "ssh" process for communication. 

The application thread calls popen() with the following command string. 
sftp -oPasswordAuthentication=no -oStrictHostKeyChecking=no -oNumberOfPasswordPrompts=0 -oPort=22 -oIdentityFile=FILE. 
ssh.prv userID@IP 

After it successfully launches the above commad, we see 3 processes in a normal working scenario. 

388177965 proc/boot/sh 
388177967 usr/local/bin/sftp 
388182064 usr/local/bin/ssh 

In the scenario, where we see the ssh process becomes zombie we see the following 

388177965 proc/boot/sh SIGSUSPEND 
388177967 usr/local/bin/sftp REPLY (PIPE process) 
388182064 (Zombie) 

and the application thread is
335899 App appThread reply 1 

We want to know why would the ssh process becomes zombie and this is not handled by the SFTP process that has launched 
it?? Does any network error can cause the ssh process die abruptly and make sftp unaware of it??

any help????