summaryrefslogtreecommitdiff
path: root/comms/hylafax
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@FreeBSD.org>1998-02-02 01:25:38 +0000
committerJun-ichiro itojun Hagino <itojun@FreeBSD.org>1998-02-02 01:25:38 +0000
commit263066dcac2e281f4e97c1926ce02ba27ec086b4 (patch)
tree259d10de27e6836cbb0e9d5ff657ad54b227d885 /comms/hylafax
parentupdate this port per PR and portlint. (diff)
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>
Notes
Notes: svn path=/head/; revision=9564
Diffstat (limited to 'comms/hylafax')
-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 0de68c39e531..b32085fe3224 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