title: pthread fork and exec
body: <p>I am using pthread_create() to create a thread and inside that thread i am using fork+execlp to load a new script.</p>
  
  <p>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.</p>
  
  <p>For example: If from my main program should execute 4 scripts. </p>
  
  <p>I create 4 threads, and inside that i use fork+execlp to execute the scripts.</p>
  
  <p>But when i see what are the scripts it is running, it only shows 3 scripts and one process iwth the parent name.</p>
  
  <p>Can you please let me know what is the best way to deal with this situation?</p>