Page MenuHomeFreeBSD

D38886.id118256.diff
No OneTemporary

D38886.id118256.diff

diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c
--- a/usr.sbin/bhyvectl/bhyvectl.c
+++ b/usr.sbin/bhyvectl/bhyvectl.c
@@ -1685,12 +1685,12 @@
send_message(const char *vmname, nvlist_t *nvl)
{
struct sockaddr_un addr;
- int err, socket_fd;
+ int err = 0, socket_fd;
socket_fd = socket(PF_UNIX, SOCK_STREAM, 0);
if (socket_fd < 0) {
perror("Error creating bhyvectl socket");
- err = -1;
+ err = errno;
goto done;
}
@@ -1706,8 +1706,10 @@
goto done;
}
- if (nvlist_send(socket_fd, nvl) < 0)
+ if (nvlist_send(socket_fd, nvl) < 0) {
perror("nvlist_send() failed");
+ err = errno;
+ }
nvlist_destroy(nvl);
done:

File Metadata

Mime Type
text/plain
Expires
Wed, Apr 8, 9:25 AM (21 m, 38 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31091420
Default Alt Text
D38886.id118256.diff (671 B)

Event Timeline