Issue #23836: Add _Py_write_noraise() function

Helper to write() which retries write() if it is interrupted by a signal (fails
with EINTR).
This commit is contained in:
Victor Stinner 2015-04-01 18:34:45 +02:00
parent 81541f4480
commit 82c3e4599d
2 changed files with 88 additions and 48 deletions

View file

@ -84,6 +84,11 @@ PyAPI_FUNC(Py_ssize_t) _Py_write(
const void *buf,
size_t count);
PyAPI_FUNC(Py_ssize_t) _Py_write_noraise(
int fd,
const void *buf,
size_t count);
#ifdef HAVE_READLINK
PyAPI_FUNC(int) _Py_wreadlink(
const wchar_t *path,