  		"xhyve is a port of FreeBSD's bhyve hypervisor to OS X that\n"
  		"works entirely in userspace and has no other dependencies.\n\n"
  		"Homepage: https://github.com/mist64/xhyve\n"
-@@ -263,8 +264,6 @@ vcpu_thread(void *param)
+@@ -265,8 +266,6 @@ vcpu_thread(void *param)
  
  	vcpu_loop(vcpu, vmexit[vcpu].rip);
  

 #include <xhyve/support/segments.h>
 
 #ifndef CTASSERT /* Allow lint to override */
@@ -43,6 +44,7 @@
 extern int guest_ncpus;
 extern char *guest_uuid_str;
 extern char *vmname;
+extern bool exit_mevent_dispatch_loop;
 
 void xh_vm_inject_fault(int vcpu, int vector, int errcode_valid,
     uint32_t errcode);
@@ -78,3 +80,5 @@ void vcpu_add(int fromcpu, int newcpu, uint64_t rip);
 int fbsdrun_vmexit_on_hlt(void);
 int fbsdrun_vmexit_on_pause(void);
 int fbsdrun_virtio_msix(void);

+	}
+	return 0;
 }
diff --git a/src/uart_emul.c b/src/uart_emul.c
index d185f74..a8dcd7e 100644
--- a/src/uart_emul.c
+++ b/src/uart_emul.c
@@ -667,6 +667,10 @@ uart_set_backend(struct uart_softc *sc, const char *backend, const char *devname
 		}
 
 		fprintf(stdout, "%s connected to %s\n", devname, ptyname);
+
+		// Sends to Go land the device path name for the slave pseudo-terminal.
+		go_set_pty_name(ptyname);
+
 		sc->tty.fd = ptyfd;
 		sc->tty.name = ptyname;
 		sc->tty.opened = true;
diff --git a/src/xhyve.c b/src/xhyve.c
index aaee5fb..7bc6e89 100644
--- a/src/xhyve.c
+++ b/src/xhyve.c
@@ -76,6 +76,7 @@ typedef int (*vmexit_handler_t)(struct vm_exit *, int *vcpu);
