summaryrefslogtreecommitdiff
path: root/x11/aterm/patches/patch-ae
diff options
context:
space:
mode:
authorhubertf <hubertf>2002-08-03 13:00:28 +0000
committerhubertf <hubertf>2002-08-03 13:00:28 +0000
commit81919a0892478a8eb2c4f57b288344313e128e5a (patch)
tree5db6f6daf561eab058f428b3143a6d7a0a48e513 /x11/aterm/patches/patch-ae
parentb2d3c91c877029af9502475864bd36584b185103 (diff)
downloadpkgsrc-81919a0892478a8eb2c4f57b288344313e128e5a.tar.gz
Update aterm to aterm-0.4.2nb2: work around problem with
lockup in select() Patch submitted by Christian Biere <ChristianBiere@gmx.de> in PR 17745
Diffstat (limited to 'x11/aterm/patches/patch-ae')
-rw-r--r--x11/aterm/patches/patch-ae25
1 files changed, 25 insertions, 0 deletions
diff --git a/x11/aterm/patches/patch-ae b/x11/aterm/patches/patch-ae
new file mode 100644
index 00000000000..7ba1b0bf572
--- /dev/null
+++ b/x11/aterm/patches/patch-ae
@@ -0,0 +1,25 @@
+$NetBSD: patch-ae,v 1.1 2002/08/03 13:00:30 hubertf Exp $
+
+--- src/command.c.orig Thu Sep 6 18:38:07 2001
++++ src/command.c
+@@ -1146,6 +1146,11 @@
+ num_fds = getdtablesize();
+ #endif
+
++#if defined(__NetBSD__)
++ if (num_fds > FD_SETSIZE)
++ num_fds = FD_SETSIZE;
++#endif
++
+ #ifdef META8_OPTION
+ meta_char = (Options & Opt_meta8 ? 0x80 : 033);
+ if (rs_modifier
+@@ -2024,7 +2029,7 @@
+ #endif
+
+ /* See if we can read from the application */
+- if (FD_ISSET(cmd_fd, &readfds)) {
++ if (retval > 0 && FD_ISSET(cmd_fd, &readfds)) {
+ unsigned int count = BUFSIZ;
+
+ cmdbuf_ptr = cmdbuf_endp = cmdbuf_base;