aboutsummaryrefslogtreecommitdiff
path: root/src/test_syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test_syscall.c')
-rw-r--r--src/test_syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test_syscall.c b/src/test_syscall.c
index b8b05c590..d484f22db 100644
--- a/src/test_syscall.c
+++ b/src/test_syscall.c
@@ -325,6 +325,7 @@ static int ts_pread64(int fd, void *aBuf, size_t nBuf, off_t off){
*/
static int ts_write(int fd, const void *aBuf, size_t nBuf){
if( tsIsFailErrno("write") ){
+ if( tsErrno("write")==EINTR ) orig_write(fd, aBuf, nBuf/2);
return -1;
}
return orig_write(fd, aBuf, nBuf);
@@ -671,4 +672,3 @@ int SqlitetestSyscall_Init(Tcl_Interp *interp){
return TCL_OK;
}
#endif
-