summaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authoritojun <itojun@FreeBSD.org>1998-02-02 01:25:38 +0000
committeritojun <itojun@FreeBSD.org>1998-02-02 01:25:38 +0000
commit3580a90fae7525ce2a19fd4dc3b01e142a742aa3 (patch)
treede565a720c98e6f6c9c25d9da441688dabb5f8bf /comms
parenteb656501036cfe4c0a66e5f2b7ef18cd2a62d0d3 (diff)
downloadFreeBSD-ports-3580a90fae7525ce2a19fd4dc3b01e142a742aa3.zip
FreeBSD-ports-3580a90fae7525ce2a19fd4dc3b01e142a742aa3.tar.gz
fix for new select() behavior in FreeBSD-current.
(change made on 97dec) comment from Lars follows: Included is an updated patch-ab file for hylafax for current that fixes the busywait that occurred once the fifo_poll() fix went into the kernel in December. The symptoms were that faxqetty and faxq would chew up an inordinate amount of time waiting for input form their FIFOS. Basically the kernel fix was to make select() return a 1 on EOF (in accordance with POSIX) and for read() to keep returning 0 on EOF (which is the state you are in if you open the fifo for reading in non-blocking mode and there are no writers). Reviewed by: asami Submitted by: Lars Fredriksen <lars@fredriks-1.pr.mcs.net>
Diffstat (limited to 'comms')
-rw-r--r--comms/hylafax/files/patch-ab26
1 files changed, 21 insertions, 5 deletions
diff --git a/comms/hylafax/files/patch-ab b/comms/hylafax/files/patch-ab
index 0de68c3..b32085f 100644
--- a/comms/hylafax/files/patch-ab
+++ b/comms/hylafax/files/patch-ab
@@ -1,9 +1,12 @@
---- ./configure.org Tue Nov 26 15:20:17 1996
-+++ ./configure Wed May 28 21:55:16 1997
-@@ -1,1 +1,1 @@
+--- configure.orig Wed Nov 27 08:20:17 1996
++++ configure Mon Feb 2 10:21:51 1998
+@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/local/bin/bash
-@@ -239,7 +241,7 @@
+ # $Id: configure,v 1.401 1996/11/23 17:28:45 sam Rel $
+ #
+ # HylaFAX Facsimile Software
+@@ -239,7 +239,7 @@
test -d /usr/ucb && PATH=$PATH:/usr/ucb # Sun and others
test -d /usr/contrib/bin && PATH=$PATH:/usr/contrib/bin # BSDi
test -d /usr/5bin && PATH=/usr/5bin:$PATH:/usr/etc # Sun and others
@@ -12,7 +15,20 @@
PATH=$PATH:$OPATH
POSIXLY_CORRECT=1; export POSIXLY_CORRECT # disable GNU extensions
-@@ -3928,7 +3930,8 @@
+@@ -1662,6 +1662,12 @@
+ CONFIG_OPENFIFO=O_RDONLY;
+ fi
+ ;;
++ *-freebsd*) if releaseAtLeast 3.0; then
++ CONFIG_OPENFIFO=O_RDWR;
++ else
++ CONFIG_OPENFIFO=O_RDONLY;
++ fi
++ ;;
+ *) CONFIG_OPENFIFO=O_RDONLY;;
+ esac
+ }
+@@ -3928,7 +3934,8 @@
printConfig
checkForExecutable $PATH_SENDMAIL
checkForExecutable $PATH_GETTY
OpenPOWER on IntegriCloud