Question: using linux ubuntu clone Q2. Inheriting environment variables from parents In this task, we study how environment variables are inherited by child processes from their
Q2. Inheriting environment variables from parents In this task, we study how environment variables are inherited by child processes from their parents. In Unix, fork() creates a new process by duplicating the calling process. The new process, referred to as the child, is an exact duplicate of the calling process, referred to as the parent, however, several things are not inherited by the child. In this task, we would like to know whether the parent's environment variables are inherited by the child process or not. Step 1. Please compile and run the following program, and describe your observation. Because the output contains many strings, you should save the output into a file, such as using child (assuming that a.out is your executable file name). a.out> #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
