Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (9.5k points)

 When I perform a fork in Unix with libraries, it opens files handles for which I don't have access. Can anyone tell me how to check the open file handles? 

1 Answer

0 votes
by (19.7k points)

You don't need to close the open file handles. Since unexported handles are the way for the internal library detail to open and close files as needed after fork. If the library doesn't want it, it'll close it with atfork() handler. So closing it's file will lead to difficulty in debugging which results in an unexpected error. 

 If you want to learn more about Linuxthen go through this Linux tutorial by Intellipaat for more insights.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 17, 2020 in Linux by blackindya (18.4k points)

Browse Categories

...