Backgorund process died after long run
I have a process that I am running as below.
c2cd r &
r is a argument
& is used to run it as background process.
c2cd is nothing but a application which creates 3 individual thread.
Simple example of c2cd.c
int main(int argc, char ** argv)
pthread_create(&g_mngr_threads[C2C_MNGR_APP], NULL, c2cApp_Manager, NULL);
pthread_create(&g_mngr_threads[C2C_MNGR_SEND], NULL, c2cSend_Manager, NULL);
pthread_create(&g_mngr_threads[C2C_MNGR_RECV], NULL, c2cRecv_Manager, NULL);
this 3 thread communicate to each other using sockets. And all the internal message passing is ok but after long run of more than 8 hours c2cd died.
Can you help me on 2 things
1> how can I monitor this thread?
2> How can I stop this thread getting unwanted signal?