2020-10-02 21:00:56 +02:00
|
|
|
diff -u -r ../tmux-3.1b/compat/imsg.c ./compat/imsg.c
|
|
|
|
--- ../tmux-3.1b/compat/imsg.c 2020-05-04 08:06:57.000000000 +0000
|
|
|
|
+++ ./compat/imsg.c 2020-10-02 18:37:55.651051000 +0000
|
|
|
|
@@ -73,7 +73,13 @@
|
2017-04-22 02:26:00 +02:00
|
|
|
again:
|
|
|
|
if (getdtablecount() + imsg_fd_overhead +
|
|
|
|
(int)((CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int))
|
|
|
|
- >= getdtablesize()) {
|
2020-10-02 21:00:56 +02:00
|
|
|
+ >=
|
|
|
|
+#ifdef HAVE_SYSCONF
|
|
|
|
+ sysconf(_SC_OPEN_MAX)
|
|
|
|
+#else
|
|
|
|
+ getdtablesize()
|
|
|
|
+#endif
|
|
|
|
+ ) {
|
2017-04-22 02:26:00 +02:00
|
|
|
errno = EAGAIN;
|
|
|
|
free(ifd);
|
|
|
|
return (-1);
|