Commit e8986c41 authored by Niels Möller's avatar Niels Möller
Browse files

(pty_send_message): Set msg_control to NULL if controllen is 0, to

make FreeBSD happy.

Rev: src/pty-helper.c:1.11
parent 4d8a522e
...@@ -138,6 +138,10 @@ pty_send_message(int socket, const struct pty_message *message) ...@@ -138,6 +138,10 @@ pty_send_message(int socket, const struct pty_message *message)
} }
hdr.msg_controllen = controllen; hdr.msg_controllen = controllen;
/* Needed to make FreeBSB happy. */
if (!controllen)
hdr.msg_control = NULL;
do do
res = sendmsg(socket, &hdr, 0); res = sendmsg(socket, &hdr, 0);
while (res < 0 && errno == EINTR); while (res < 0 && errno == EINTR);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment