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.

Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig