From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21269 invoked from network); 21 Feb 2000 18:20:02 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Feb 2000 18:20:02 -0000 Received: (qmail 2769 invoked by alias); 21 Feb 2000 18:19:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9823 Received: (qmail 2759 invoked from network); 21 Feb 2000 18:19:53 -0000 Date: Mon, 21 Feb 2000 13:19:45 -0500 From: Clint Adams To: zsh-workers@sunsite.auc.dk Subject: PATCH: hanging FIFO test Message-ID: <20000221131945.D23999@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.1.2i I'm told that in some situations, opening a FIFO read-only can cause a hang. I have no idea why. This should circumvent the problem. Index: configure.in =================================================================== RCS file: /cvs/zsh/zsh/configure.in,v retrieving revision 1.1.1.60 diff -u -r1.1.1.60 configure.in --- configure.in 2000/02/14 00:19:18 1.1.1.60 +++ configure.in 2000/02/21 17:46:37 @@ -1140,7 +1140,7 @@ if(pid < 0) exit(1); if(pid) { - fd = open("/tmp/fifo$$", O_RDONLY); + fd = open("/tmp/fifo$$", O_RDWR); exit(fd < 0 || read(fd, &c, 1) != 1 || c != 'x'); } fd = open("/tmp/fifo$$", O_WRONLY);