[issue19965] Non-atomic generation of Include/Python-ast.h and Python/Python-ast.c

Charles-François Natali report at bugs.python.org
Thu Dec 12 20:43:45 CET 2013


Charles-François Natali added the comment:

>
>
> > Since the patch doesn't use O_EXCL for the temporary file, it suffers
> > from the exact same race condition as the current code.
>
> This does not make race condition. Only one thread writes .tmp files.
>
> The problem is that other threads can read *-ast.[ch] files while they are
> written.
>

Ah, I thought it was written by several processes. It's OK then.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19965>
_______________________________________


More information about the Python-bugs-list mailing list