mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.3.083
Problem: When a read() or write() is interrupted by a signal it fails. Solution: Add read_eintr() and write_eintr().
This commit is contained in:
@@ -1642,6 +1642,11 @@ int vim_memcmp __ARGS((void *, void *, size_t));
|
||||
# define USE_INPUT_BUF
|
||||
#endif
|
||||
|
||||
#ifndef EINTR
|
||||
# define read_eintr(fd, buf, count) vim_read((fd), (buf), (count))
|
||||
# define write_eintr(fd, buf, count) vim_write((fd), (buf), (count))
|
||||
#endif
|
||||
|
||||
#ifdef MSWIN
|
||||
/* On MS-Windows the third argument isn't size_t. This matters for Win64,
|
||||
* where sizeof(size_t)==8, not 4 */
|
||||
|
Reference in New Issue
Block a user