etc_changed, passwd & group

Pierre A. Humblet Pierre.Humblet@ieee.org
Sat Jan 18 05:09:00 GMT 2003


Chris,

An ugly tought came to my mind while doing the dishes:
there is a race condition left.
FindFirstChangeNotification must be called from init, otherwise
in the normal case it will be called after the load, leaving
a window where the file can be updated without being noticed.

Similarly in the fork case, where changed_dir is called first,
FindFirstChangeNotification must be called from changed_dir
(if the handle is NULL), even though res will be true.

I guess this calls for defining a new function en etc::, calling
it both from init and changed_dir. 
Enough for today, good night.

Pierre
   



More information about the Cygwin-patches mailing list