86.0k views
2 votes
In Linux, suppose a process successfully opens an existing file that has a single hard link to it, but while the process is reading that file, another process unlinks that file? What happens to subsequent reads by the first process? Do they succeed? Do they fail? (Answer this problem by consulting documentation or by writing a program to test the behavior of the system in this case.)

1 Answer

7 votes

Answer:

The answer to this question can be defined as follows:

Step-by-step explanation:

  • If another name [unrelated] has been its lives over the past file, which is directly connected, however, the file always has an open file.
  • It is the file, that would also remain until the very last detection method of both the file to which file corresponds has been closed.
  • It is the initial process opens and reads its file sequentially, its flag reads to only the end of a published procedure as well as to the end of the read flag could only be removed.
User Mochalygin
by
6.2k points