Results 1 to 2 of 2

Thread: fork is not inheriting all the threads from parent

  1. #1

    fork is not inheriting all the threads from parent

    I have a process which has main thread and also created a new thread. So totallly this porcess contains 2 threads. When I did fork() from the newly created thread, the child is inheriting only the calling thread and it is not inheriting main thread. I am not understanding why it is like that..
    I wanted child to be inherited all the threads from parent proces.. Please anybody help me on this.


  2. #2
    The operation of fork() is OS-dependent... On some UNIX systems (and Solaris), there are two versions of fork(), one that duplicates all threads and one that duplicates just the calling thread. If the application is using POSIX threads, a call to fork only duplicates the calling thread.

    Here's a link to fork() calls on Solaris which details the different calls:
    When the going gets tough...the tough get going.


Similar Threads

  1. Tracking threads in Olly
    By live_dont_exist in forum The Newbie Forum
    Replies: 10
    Last Post: September 23rd, 2011, 04:41
  2. Ollydebug with threads and exec
    By rwartell in forum OllyDbg Support Forums
    Replies: 1
    Last Post: July 24th, 2010, 17:59
  3. explorer parent process
    By Hero in forum The Newbie Forum
    Replies: 2
    Last Post: November 19th, 2004, 11:50
  4. Replies: 15
    Last Post: May 13th, 2003, 06:23
  5. Aargh! Can we PM some of these RV/Asprotect threads?
    By Kayaker in forum Malware Analysis and Unpacking Forum
    Replies: 16
    Last Post: April 27th, 2002, 16:27


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts