Hi!
I'm newbi in the Unix. I've a C++ Program from where one shell gets executed. Sample C++ code is --
transactionID = 1199;
case 1199:
//*************************************************
// Received the suspend signal.
//*************************************************
//Call monitoring script, to check proper end of maintstaticloader
if (fork() == 0)
{
execlp("monTx1199.sh", "monTx1199.sh", (char *)0);
exit(0);
}
Name of the C++ program is - MAINRCVR.cpp.
And, in the shell i've the following code --
PROCESS=${BINDIR}/DRCVR/MAINTRCVR
---------------
Some more process
---------------
maintrcvr_pid=`ps -ef | grep -v grep | grep "${PROCESS}" | awk '{print $2}'`
kill -s SIGCONT $maintrcvr_pid
-But, Even if i kill this process - it is still showing defunct table. We have done test runs of this and it seems to run fine, but all of a sudden after some days of running i see that there are almost 1000 of defunct processes. I've tried --
kill -9 $maintrcvr_pid
But, nothing happen. Pls give me some suggestion in this regard. Thanks in advance.
Satyaki De.