Menu

#3 symlink handling is racy

1.0
open
nobody
None
2014-12-11
2014-12-11
No

redir_symlink() removes and creates symlinks.
If multiple processes or threads are doing
this concurrently, the things break.
The solution is to either use file locks or
manage symlinks in a per-thread dirs.
However the per-thread dirs would need to
be cleaned up, not left dangling, which is
difficult to achieve.

Discussion


Log in to post a comment.