From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22336 invoked from network); 25 Nov 2003 20:39:57 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 25 Nov 2003 20:39:57 -0000 Received: (qmail 17256 invoked by alias); 25 Nov 2003 20:39:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6813 Received: (qmail 17241 invoked from network); 25 Nov 2003 20:39:35 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 25 Nov 2003 20:39:35 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [216.27.190.146] by sunsite.dk (MessageWall 1.0.8) with SMTP; 25 Nov 2003 20:39:34 -0000 Received: from ceramic.fifi.org (mail@ceramic.fifi.org [216.27.190.147]) by tantale.fifi.org (8.9.3p2/8.9.3/Debian 8.9.3-21) with ESMTP id MAA00305; Tue, 25 Nov 2003 12:39:31 -0800 Received: from phil by ceramic.fifi.org with local (Exim 4.22) id 1AOjy6-0006Fb-U7; Tue, 25 Nov 2003 12:39:30 -0800 To: Jens Petersen Cc: Zsh-users Subject: Re: problem building zsh in background References: Mail-Copies-To: nobody From: Philippe Troin Date: 25 Nov 2003 12:39:30 -0800 In-Reply-To: Message-ID: <87d6bgrxml.fsf@ceramic.fifi.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Philippe Troin Jens Petersen writes: > Any comments on this bug report: > ? > > It seems easy to reproduce with both 4.0.7 and 4.1.1: eg > > % rm -rf zsh-4.0.7 > % tar tar jxf zsh-4.0.7.tar.bz2 > % cd zsh-4.0.7 > % ./configure & > : > : > checking if kill(pid, 0) returns ESRCH correctly... yes > checking if POSIX sigsuspend() works... yes > checking if tcsetpgrp() actually works... > [1] + suspended (tty output) ./configure > > > In the above report Roland McGrath comments "The zsh > configure script runs a program that does tcsetpgrp on fd 0 > (stdin), which is broken in multiple ways. If the input > were redirected then the test would give a false negative. > Since the input is your terminal and the job is in the > background, it rightly gets SIGTTOU for trying to perform > tcsetpgrp. The only way a test of this nature can be safe > is if it's done on a specially created pty, e.g. in the > child of a forkpty call, but using ptys is not fully > portable so zsh is kind of stuck here." > > Anyone looked into this before? We were looking into it on the zsh-workers mailing list yesterday. Check-out the thread at http://www.zsh.org/mla/workers/2003/msg00895.html Phil.