Re: keychain locking problem (Was test -f occasionally fails on sym links)

2005-03-29 Thread Corinna Vinschen
On Mar 29 06:47, Karl M wrote: > The reason I ask is that keychain uses > >if tl_error=`ln -s $$ "$lockf" 2>&1`; then > > inside its takelock function as an atomic operation for creating a lock. It > then uses > >if [ -f "$lockf" ]; then > > to test for an old style lock file, and this

keychain locking problem (Was test -f occasionally fails on sym links)

2005-03-29 Thread Karl M
Hi All... The reason I ask is that keychain uses if tl_error=`ln -s $$ "$lockf" 2>&1`; then inside its takelock function as an atomic operation for creating a lock. It then uses if [ -f "$lockf" ]; then to test for an old style lock file, and this sometimes fails (incorrectly succeeds) and

keychain locking problem (Was test -f occasionally fails on sym links)

2005-03-29 Thread Karl M
Hi All... The reason I ask is that keychain uses if tl_error=`ln -s $$ "$lockf" 2>&1`; then inside its takelock function as an atomic operation for creating a lock. It then uses if [ -f "$lockf" ]; then to test for an old style lock file, and this sometimes fails (incorrectly succeeds) and