This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ijmorlan
Recipients ijmorlan
Date 2007-12-20.19:49:30
SpamBayes Score 0.02005028
Marked as misclassified No
Message-id <1198180171.38.0.482360233935.issue1675@psf.upfronthosting.co.za>
In-reply-to
Content
There appears to be a race condition in os.makedirs.  Suppose two
processes simultaneously try to create two different directories with a
common non-existent ancestor.  For example process 1 tries to create
"a/b" and process 2 tries to create "a/c".  They both check that "a"
does not exist, then both invoke makedirs on "a".  One of these will
throw OSError (due to the underlying EEXIST system error), and this
exception will be propagated.  Note that this happens even though the
two processes are trying to create two different directories and so one
would not expect either to report a problem with the directory already
existing.
History
Date User Action Args
2007-12-20 19:49:31ijmorlansetspambayes_score: 0.0200503 -> 0.02005028
recipients: + ijmorlan
2007-12-20 19:49:31ijmorlansetspambayes_score: 0.0200503 -> 0.0200503
messageid: <1198180171.38.0.482360233935.issue1675@psf.upfronthosting.co.za>
2007-12-20 19:49:31ijmorlanlinkissue1675 messages
2007-12-20 19:49:30ijmorlancreate