[darcs-devel] [issue1774] darcs library is not thread-safe

Ganesh Sittampalam bugs at darcs.net
Sun Mar 21 07:48:14 UTC 2010


New submission from Ganesh Sittampalam <ganesh at earth.li>:

The darcs code makes use of the current working directory, a process-
level  global. This is not thread safe, either for concurrent calls to 
the darcs library itself on different threads, or for concurrent use of 
CWD by a non-darcs thread at the same time as darcs.

The obvious code fix is to use absolute paths anyway, but this 
apparently has a significant performance penalty (see discussion on 
patch127).

----------
messages: 10347
nosy: darcs-devel, dmitry.kurochkin, ganesh, kowey, mornfall
priority: urgent
status: need-action
title: darcs library is not thread-safe
topic: LibraryDesign

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1774>
__________________________________


More information about the darcs-devel mailing list