|
@ -1,6 +1,6 @@ |
|
|
--- imsg.orig 2014-12-28 13:24:02.771330936 -0600 |
|
|
|
|
|
+++ imsg.c 2014-12-28 13:24:35.347331642 -0600 |
|
|
|
|
|
@@ -70,6 +70,7 @@ |
|
|
|
|
|
|
|
|
--- imsg.c.orig 2015-07-17 23:57:48.000000000 +0000 |
|
|
|
|
|
+++ imsg.c 2015-07-17 23:58:57.000000000 +0000 |
|
|
|
|
|
@@ -71,6 +71,7 @@ |
|
|
return (-1); |
|
|
return (-1); |
|
|
|
|
|
|
|
|
again: |
|
|
again: |
|
@ -8,13 +8,11 @@ |
|
|
if (getdtablecount() + imsg_fd_overhead + |
|
|
if (getdtablecount() + imsg_fd_overhead + |
|
|
(CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int) |
|
|
(CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int) |
|
|
>= getdtablesize()) { |
|
|
>= getdtablesize()) { |
|
|
@@ -77,7 +78,8 @@ |
|
|
|
|
|
|
|
|
@@ -78,6 +79,7 @@ |
|
|
free(ifd); |
|
|
free(ifd); |
|
|
return (-1); |
|
|
return (-1); |
|
|
} |
|
|
} |
|
|
- |
|
|
|
|
|
+#endif |
|
|
+#endif |
|
|
+ |
|
|
|
|
|
|
|
|
|
|
|
if ((n = recvmsg(ibuf->fd, &msg, 0)) == -1) { |
|
|
if ((n = recvmsg(ibuf->fd, &msg, 0)) == -1) { |
|
|
if (errno == EMSGSIZE) |
|
|
if (errno == EMSGSIZE) |
|
|
goto fail; |
|
|
|