[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] Local newsgroups possible with leafnode-2.0b7 ?
krasel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Cornelius Krasel) writes:
> if ( !stat( ".", &st ) ) {
> mtime_dir = st.st_mtime;
> if ( !stat(".overview", &st) && (st.st_atime > mtime_dir) ) {
> return 1;
> }
> }
I'm afraid this will fail if the directory has changed in between and
another process has later read the updated .overview file.
Stefan
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list