mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Merge polly.(none):/home/kaa/src/maint/bug31566/my50-bug31566
into polly.(none):/home/kaa/src/maint/mysql-5.0-maint
This commit is contained in:
commit
2c9720c20e
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,10 @@ uint my_write(int Filedes, const byte *Buffer, uint Count, myf MyFlags)
|
|||
Filedes, (long) Buffer, Count, MyFlags));
|
||||
errors=0; written=0L;
|
||||
|
||||
/* The behavior of write(fd, buf, 0) is not portable */
|
||||
if (unlikely(!Count))
|
||||
return 0;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
if ((writenbytes = (uint) write(Filedes, Buffer, Count)) == Count)
|
||||
|
|
Loading…
Reference in a new issue