symlink handling is racy
Status: Beta
Brought to you by:
dwheeler
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.