Added configuration parameter --disable-locking for systems that don't
commit345104a248a4b9840aa37570e8eb6d33b25215d1
authorBen Kibbey <bjk@luxsci.net>
Tue, 23 Oct 2007 00:03:45 +0000 (22 20:03 -0400)
committerBen Kibbey <bjk@luxsci.net>
Tue, 23 Oct 2007 00:03:45 +0000 (22 20:03 -0400)
tree2ff21fe1c1e12d7feabf6dfb4b39c4205a911ba7
parent3d9a2c328b8459265558a54f9b5430e2e75cecb2
Added configuration parameter --disable-locking for systems that don't
have a complete pthread_mutex_t data type. A complete data type is
required because the mutex is stored in shared memory and a pointer
won't work. FreeBSD and probably others have this problem. I'll
probably end up rewriting pwmd to use multi-threading exclusively so
this won't be a problem anymore. Until then, for systems that have
this limitation, the chances of data file corruption are increased
quite a bit if two processes have the same file open and both try to
write. This also affects the key cache when two processes want to
change the key when saving.
configure.ac
src/cache.h
src/commands.c
src/pwmd.c