Diff for /qemu/migration-exec.c between versions 1.1.1.6 and 1.1.1.7

version 1.1.1.6, 2018/04/24 19:18:00 version 1.1.1.7, 2018/04/24 19:35:23
Line 11 Line 11
  * 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 50  static int exec_close(MigrationState *s) Line 52  static int exec_close(MigrationState *s)
         ret = qemu_fclose(s->opaque);          ret = qemu_fclose(s->opaque);
         s->opaque = NULL;          s->opaque = NULL;
         s->fd = -1;          s->fd = -1;
         if (ret != -1 &&          if (ret >= 0 && !(WIFEXITED(ret) && WEXITSTATUS(ret) == 0)) {
             WIFEXITED(ret)              /* close succeeded, but non-zero exit code: */
             && WEXITSTATUS(ret) == 0) {              ret = -EIO; /* fake errno value */
             ret = 0;  
         } else {  
             ret = -1;  
         }          }
     }      }
     return ret;      return ret;

Removed from v.1.1.1.6  
changed lines
  Added in v.1.1.1.7


unix.superglobalmegacorp.com