Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!killer!texbell!nuchat!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.unix.wizards Subject: Re: Demand paged executables Keywords: SYSTEM V see Bach Message-ID: <2994@ficc.uu.net> Date: 3 Feb 89 19:18:07 GMT References: <409@lakart.UUCP> <1997@solo12.cs.vu.nl> <2765@rti.UUCP> <314@spca6.UUCP> Organization: Xenix Support Lines: 19 In article <314@spca6.UUCP>, ray@spca6.UUCP (ray) should probably go back to Bach's book and re-read the stuff about what happend when you delete an open file... > Consider what might happen if an a.out with shared text is started (process A). > Next the actual file is allowed to be removed. > Later an executable is created and happens to land at the same inode that the > previous a.out used. Can't happen. This is exactly equivalent to what happens when you delete an open file. What would happen is that the inode and file would hang around with the open count >= 1. When the last process using that image terminated, open count would == 0 and link count would == 0, and the file would be reclaimed. New files would get new inodes until reclamation. -- Peter da Silva, Xenix Support, Ferranti International Controls Corporation. Work: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180. `-_-' Home: bigtex!texbell!sugar!peter, peter@sugar.uu.net. 'U` Opinions may not represent the policies of FICC or the Xenix Support group.