can_redirect's test for existance of the path followed by the mkdir
is inherently racy. It's trivially possible to encounter a situation
where the test for existance fails in two processes and one of them
succeeds in creating the directory. Since both processes are
looking to create and use the directory for the same purpose, we
don't need to treat EEXIST as an error.
can_redirect's test for existance of the path followed by the mkdir is inherently racy. It's trivially possible to encounter a situation where the test for existance fails in two processes and one of them succeeds in creating the directory. Since both processes are looking to create and use the directory for the same purpose, we don't need to treat EEXIST as an error.