What are all the things a child process can/will inherit from a parent? (and some other related questions)...
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".
- 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?
- Can a child inherit anything else other than attributes?
- What are all the attributes that a process might have? (is there a reference page/manual for this?)
- What attributes (or any non-attributes, reference to question (1)) does a child process inherit by default from its parent?
- 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?
process file-descriptors
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.
add a comment |
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".
- 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?
- Can a child inherit anything else other than attributes?
- What are all the attributes that a process might have? (is there a reference page/manual for this?)
- What attributes (or any non-attributes, reference to question (1)) does a child process inherit by default from its parent?
- 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?
process file-descriptors
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 offork()
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
add a comment |
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".
- 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?
- Can a child inherit anything else other than attributes?
- What are all the attributes that a process might have? (is there a reference page/manual for this?)
- What attributes (or any non-attributes, reference to question (1)) does a child process inherit by default from its parent?
- 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?
process file-descriptors
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".
- 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?
- Can a child inherit anything else other than attributes?
- What are all the attributes that a process might have? (is there a reference page/manual for this?)
- What attributes (or any non-attributes, reference to question (1)) does a child process inherit by default from its parent?
- 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
process file-descriptors
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 offork()
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
add a comment |
A fork() is a forking, everything is inherited, you get two mostly exact copies of the process (except for the return value offork()
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
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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