This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: etc_changed, passwd & group
- From: "Pierre A. Humblet" <Pierre dot Humblet at ieee dot org>
- To: cygwin-patches at cygwin dot com
- Date: Sat, 18 Jan 2003 00:03:10 -0500
- Subject: Re: etc_changed, passwd & group
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