Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-3] src/usr.sbin/rpc.statd



Module Name:    src
Committed By:   tron
Date:           Sat Nov  5 00:50:18 UTC 2005

Modified Files:
        src/usr.sbin/rpc.statd [netbsd-3]: stat_proc.c

Log Message:
Pull up following revision(s) (requested by bouyer in ticket #932):
        usr.sbin/rpc.statd/stat_proc.c: revision 1.7
When forking, we keep a reference to the status db file, and if the
memory copy of the file is dirty, is will be synced when the child exists.
But the parent may have done changes to the database in the meantime, resulting
in a db corruption.
Fix this by calling sync_file() just before the fork. The child will still have
a reference to the db, but won't try to write it on exit.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.6.10.1 src/usr.sbin/rpc.statd/stat_proc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index