CLONE_FS Example
This post we will write a code, which will give us an observation what changes when CLONE_FS is added and when it is removed.
Code:
Output:
Notes:
1. You can see when CLONE_FS is set, changing the working directory in the child process has changed in the parent process.
2. Similarly other attributes like root directory will also change if CLONE_FS is set.
Code:
Output:
Notes:
1. You can see when CLONE_FS is set, changing the working directory in the child process has changed in the parent process.
2. Similarly other attributes like root directory will also change if CLONE_FS is set.
Comments
Post a Comment