[issue17852] Built-in module _io can loose data from buffered files at exit
STINNER Victor
report at bugs.python.org
Tue Apr 30 09:54:49 CEST 2013
STINNER Victor added the comment:
> It's guaranteed for exit(), not _Exit()/_exit().
Oops ok, thanks.
2013/4/30 Charles-François Natali <report at bugs.python.org>:
>
> Charles-François Natali added the comment:
>
>> Hum, POSIX (2004) is not so strict:
>> "Whether open streams are flushed or closed, or temporary files are
>> removed is implementation-defined."
>> http://pubs.opengroup.org/onlinepubs/009695399/functions/exit.html
>
> You're looking at the wrong section:
>
> "The exit() function shall then flush all open streams with unwritten
> buffered data, close all open streams"
>
> Then a couple lines below:
>
> "The _Exit() [CX] and _exit() functions shall not call functions
> registered with atexit() nor any registered signal handlers. Whether
> open streams are flushed or closed, or temporary files are removed is
> implementation-defined."
>
> It's guaranteed for exit(), not _Exit()/_exit().
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue17852>
> _______________________________________
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17852>
_______________________________________
More information about the Python-bugs-list
mailing list