I am using pthread_create() to create a thread and inside that thread i am using fork+execlp to load a new script.
But the problem is some time fork() call is fine but it is not executing the execlp call. So i have several process with the parent name is running and that is the reason some of the scripts are getting missed.
For example: If from my main program should execute 4 scripts.
I create 4 threads, and inside that i use fork+execlp to execute the scripts.
But when i see what are the scripts it is running, it only shows 3 scripts and one process iwth the parent name.
Can you please let me know what is the best way to deal with this situation?