plugins/nbd/nbd.c
/* Perform the reply half of a transaction. */
Perform the reply half of a transaction.
Perform the reply half of a transaction .
static int
nbd_reply (struct handle *h, int fd)
{
  int err;
  if (read (fd, &err, sizeof err) != sizeof err) {
    nbdkit_debug ("failed to read pipe: %m");
    err = EIO;
  }
  close (fd);
  errno = err;
  return err ? -1 : 0;
}
static int nbd_reply ( struct handle * h , int fd ) { int err ; if ( read ( fd , & err , sizeof err ) != sizeof err ) { nbdkit_debug ( " " ) ; err = EIO ; } close ( fd ) ; errno = err ; return err ? -1 : 0 ; }
Perform the reply half of a transaction.
Perform the reply half of a transaction .