diff options
author | unknown <tsmith/tim@siva.hindu.god> | 2006-09-14 23:20:13 -0600 |
---|---|---|
committer | unknown <tsmith/tim@siva.hindu.god> | 2006-09-14 23:20:13 -0600 |
commit | ac1a030e34aa4ca29cd93679541e2f9fbeb83382 (patch) | |
tree | 7e5caf8377fbd0f5505ff2bd40395415af23304f /mysys/my_read.c | |
parent | da5e2660b7ecea8b255f8b7e4f69c61d157918d7 (diff) | |
parent | d7a1f97c15fc5adaaf3116b8fb9ee32783498165 (diff) | |
download | mariadb-git-ac1a030e34aa4ca29cd93679541e2f9fbeb83382.tar.gz |
Merge siva.hindu.god:/usr/home/tim/m/bk/tmp/40
into siva.hindu.god:/usr/home/tim/m/bk/tmp/41
mysys/my_lwrite.c:
Auto merged
mysys/my_pread.c:
Auto merged
mysys/my_read.c:
Auto merged
mysys/my_write.c:
Auto merged
Diffstat (limited to 'mysys/my_read.c')
-rw-r--r-- | mysys/my_read.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mysys/my_read.c b/mysys/my_read.c index 9de070e772d..f137a8b0f0a 100644 --- a/mysys/my_read.c +++ b/mysys/my_read.c @@ -51,8 +51,12 @@ uint my_read(File Filedes, byte *Buffer, uint Count, myf MyFlags) DBUG_PRINT("warning",("Read only %ld bytes off %ld from %d, errno: %d", readbytes,Count,Filedes,my_errno)); #ifdef THREAD - if (readbytes == 0 && errno == EINTR) - continue; /* Interrupted */ + if ((readbytes == 0 || (int) readbytes == -1) && errno == EINTR) + { + DBUG_PRINT("debug", ("my_read() was interrupted and returned %d", + (int) readbytes)); + continue; /* Interrupted */ + } #endif if (MyFlags & (MY_WME | MY_FAE | MY_FNABP)) { |