What’s exactly meant by saying “sharing filesystem information“? What is in “filesystem information”?
(This question arose when I saw the CLONE_FS flag in some linux headers)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
File system information includes root of the file, current working directory, and the umask (file permission). [Represented in the kernel by
struct fs_struct]So when you will set CLONE_FS flag, child process and parent process will share file system information.
Now, Take an example: a parent is processing some file, and at that time child process has changed working directory then parent will get problems (if relative path specified) because they share same working directory.
Hope you got your answer.