File locking

Bassoukos Tassos abas at aix.meng.auth.gr
Wed Aug 25 16:41:08 EEST 1999


On Wed, 25 Aug 1999, Michalis Kabrianis wrote:

[snip flock() problem]

H lysh tou problhmatos edw einai aplh: aplws kaneis to flock() meta tnn
open(). 

Ean anyshxeis gia to remove, des thn e3hs seira:
  open()
  flock()
  remove()/unlink()
  close()
Nai, fainetai kapws para3eno, alla ta unix semantics (as me dior8wsei
kapoios, den eimai ricudion) eggywntai oti ena arxeio 8a parameinei
prospelasimo akoma kai ean to sbhseis[0].

Tassos
[0] se ayth thn periptwsh, aplws to unlink() afairei to directory entry,
    alla to inode paramenei valid mexri to teleytaio close().
-- 
Bassoukos Tassos   +30 31 996011 / +30 93 7109954
 Computer Shaman and Informatics Thaumaturge


--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list