What are all the things a child process can/will inherit from a parent? (and some other related questions)...












0















This question already has an answer here:




  • What properties of an unprivileged process are preserved during an `execve` call?

    1 answer



  • How do fork and exec work?

    4 answers




I am trying to get a big picture / "umbrella" perspective here.



As of now, I only know that a child process will inherit from a parent by default its "file descriptors".




  1. Also, I somehow understand (but am not sure if I am right) that "file descriptors" are an "attribute" of a process, and a process has many attributes. Am I right?

  2. Can a child inherit anything else other than attributes?

  3. What are all the attributes that a process might have? (is there a reference page/manual for this?)

  4. What attributes (or any non-attributes, reference to question (1)) does a child process inherit by default from its parent?

  5. Are "processes", "attributes" and "file descriptors", and process inheritance, a unique concept to UNIX operating systems, or are they also present in non-UNIX operating systems?










share|improve this question















marked as duplicate by muru, Stephen Kitt, Rui F Ribeiro, jimmij, icarus Dec 16 at 19:18


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • A fork() is a forking, everything is inherited, you get two mostly exact copies of the process (except for the return value of fork() in both processes and the pid, ppid obviously). Maybe the question you wanted to ask is what is preserved when a process executes a new command.
    – Stéphane Chazelas
    Dec 16 at 17:07












  • Also see: unix.stackexchange.com/questions/17758/…, unix.stackexchange.com/questions/394189/…
    – muru
    Dec 16 at 17:14
















0















This question already has an answer here:




  • What properties of an unprivileged process are preserved during an `execve` call?

    1 answer



  • How do fork and exec work?

    4 answers




I am trying to get a big picture / "umbrella" perspective here.



As of now, I only know that a child process will inherit from a parent by default its "file descriptors".




  1. Also, I somehow understand (but am not sure if I am right) that "file descriptors" are an "attribute" of a process, and a process has many attributes. Am I right?

  2. Can a child inherit anything else other than attributes?

  3. What are all the attributes that a process might have? (is there a reference page/manual for this?)

  4. What attributes (or any non-attributes, reference to question (1)) does a child process inherit by default from its parent?

  5. Are "processes", "attributes" and "file descriptors", and process inheritance, a unique concept to UNIX operating systems, or are they also present in non-UNIX operating systems?










share|improve this question















marked as duplicate by muru, Stephen Kitt, Rui F Ribeiro, jimmij, icarus Dec 16 at 19:18


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • A fork() is a forking, everything is inherited, you get two mostly exact copies of the process (except for the return value of fork() in both processes and the pid, ppid obviously). Maybe the question you wanted to ask is what is preserved when a process executes a new command.
    – Stéphane Chazelas
    Dec 16 at 17:07












  • Also see: unix.stackexchange.com/questions/17758/…, unix.stackexchange.com/questions/394189/…
    – muru
    Dec 16 at 17:14














0












0








0


0






This question already has an answer here:




  • What properties of an unprivileged process are preserved during an `execve` call?

    1 answer



  • How do fork and exec work?

    4 answers




I am trying to get a big picture / "umbrella" perspective here.



As of now, I only know that a child process will inherit from a parent by default its "file descriptors".




  1. Also, I somehow understand (but am not sure if I am right) that "file descriptors" are an "attribute" of a process, and a process has many attributes. Am I right?

  2. Can a child inherit anything else other than attributes?

  3. What are all the attributes that a process might have? (is there a reference page/manual for this?)

  4. What attributes (or any non-attributes, reference to question (1)) does a child process inherit by default from its parent?

  5. Are "processes", "attributes" and "file descriptors", and process inheritance, a unique concept to UNIX operating systems, or are they also present in non-UNIX operating systems?










share|improve this question
















This question already has an answer here:




  • What properties of an unprivileged process are preserved during an `execve` call?

    1 answer



  • How do fork and exec work?

    4 answers




I am trying to get a big picture / "umbrella" perspective here.



As of now, I only know that a child process will inherit from a parent by default its "file descriptors".




  1. Also, I somehow understand (but am not sure if I am right) that "file descriptors" are an "attribute" of a process, and a process has many attributes. Am I right?

  2. Can a child inherit anything else other than attributes?

  3. What are all the attributes that a process might have? (is there a reference page/manual for this?)

  4. What attributes (or any non-attributes, reference to question (1)) does a child process inherit by default from its parent?

  5. Are "processes", "attributes" and "file descriptors", and process inheritance, a unique concept to UNIX operating systems, or are they also present in non-UNIX operating systems?





This question already has an answer here:




  • What properties of an unprivileged process are preserved during an `execve` call?

    1 answer



  • How do fork and exec work?

    4 answers








process file-descriptors






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 16 at 17:09









muru

1




1










asked Dec 16 at 16:57









forgodsakehold

6




6




marked as duplicate by muru, Stephen Kitt, Rui F Ribeiro, jimmij, icarus Dec 16 at 19:18


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by muru, Stephen Kitt, Rui F Ribeiro, jimmij, icarus Dec 16 at 19:18


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.














  • A fork() is a forking, everything is inherited, you get two mostly exact copies of the process (except for the return value of fork() in both processes and the pid, ppid obviously). Maybe the question you wanted to ask is what is preserved when a process executes a new command.
    – Stéphane Chazelas
    Dec 16 at 17:07












  • Also see: unix.stackexchange.com/questions/17758/…, unix.stackexchange.com/questions/394189/…
    – muru
    Dec 16 at 17:14


















  • A fork() is a forking, everything is inherited, you get two mostly exact copies of the process (except for the return value of fork() in both processes and the pid, ppid obviously). Maybe the question you wanted to ask is what is preserved when a process executes a new command.
    – Stéphane Chazelas
    Dec 16 at 17:07












  • Also see: unix.stackexchange.com/questions/17758/…, unix.stackexchange.com/questions/394189/…
    – muru
    Dec 16 at 17:14
















A fork() is a forking, everything is inherited, you get two mostly exact copies of the process (except for the return value of fork() in both processes and the pid, ppid obviously). Maybe the question you wanted to ask is what is preserved when a process executes a new command.
– Stéphane Chazelas
Dec 16 at 17:07






A fork() is a forking, everything is inherited, you get two mostly exact copies of the process (except for the return value of fork() in both processes and the pid, ppid obviously). Maybe the question you wanted to ask is what is preserved when a process executes a new command.
– Stéphane Chazelas
Dec 16 at 17:07














Also see: unix.stackexchange.com/questions/17758/…, unix.stackexchange.com/questions/394189/…
– muru
Dec 16 at 17:14




Also see: unix.stackexchange.com/questions/17758/…, unix.stackexchange.com/questions/394189/…
– muru
Dec 16 at 17:14















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Morgemoulin

Scott Moir

Souastre