Diff for /qemu/migration-unix.c between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2018/04/24 19:16:50 version 1.1.1.5, 2018/04/24 19:33:52
Line 9 Line 9
  * This work is licensed under the terms of the GNU GPL, version 2.  See   * This work is licensed under the terms of the GNU GPL, version 2.  See
  * the COPYING file in the top-level directory.   * the COPYING file in the top-level directory.
  *   *
    * Contributions after 2012-01-13 are licensed under the terms of the
    * GNU GPL, version 2 or (at your option) any later version.
  */   */
   
 #include "qemu-common.h"  #include "qemu-common.h"
Line 40  static int unix_write(MigrationState *s, Line 42  static int unix_write(MigrationState *s,
   
 static int unix_close(MigrationState *s)  static int unix_close(MigrationState *s)
 {  {
       int r = 0;
     DPRINTF("unix_close\n");      DPRINTF("unix_close\n");
     if (s->fd != -1) {      if (s->fd != -1) {
         close(s->fd);          if (close(s->fd) < 0) {
               r = -errno;
           }
         s->fd = -1;          s->fd = -1;
     }      }
     return 0;      return r;
 }  }
   
 static void unix_wait_for_connect(void *opaque)  static void unix_wait_for_connect(void *opaque)

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5


unix.superglobalmegacorp.com