From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7684 invoked from network); 16 Nov 2023 04:59:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Nov 2023 04:59:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1700110758; b=OgSi5hGRvwJb2GtyvWfXBY8kzrNwJvS2HvaaCXQFY2vYY+Us120oxjtAv6NdHtvudSQ4XBXV7w L5B1bedv4yTEC5YuRNz29uV/MdSiI0OnhqJeYiCQFmXA4wlWp3PkZXYL1nugCrkavGJWb5Se19 PClaAMKZ0AJXBwQiSR/HwSL5GCNmj8v4D9gXufBIy6uCCFPWNSwr/znwMMMe+y+GAsxYLoehgd Dyfi00BbR+zYNOv0TxiHWzJ5VtnUNKh5G9ozD4Q7E+oNnyjHJoAf/AQzi8Yrcq03O4UproLXkb Y2ULm9rMuIHqZQ4murE/rCL1yPEriBDxAsnMp5e0IlCm9A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f180.google.com) smtp.remote-ip=209.85.208.180; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1700110758; bh=M/tuMCMmJNlV5dFld0C2178zA4sxpy2Zoh9Atw3O6Ww=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=hepFwajqLyfwlwv8z7urTiSlTA6Ds4rTP0xqaui3fyoYNm/ua3w1X0SZ4WTta/rGV1AduL9OC+ u9ScUXxtdUpqe8NMCpD7iZzaslemM9Ajc9QEVKS+G+6kqhVwh2SYDOLc55ZD+kWz1VKZDc/eDO z3ODxSF1ck8F6VyAncn3NOAwKR2LXlBatgTwC/2oQiZEooz/MsMJdLzYvCWzIJfVVSZN1F4K+Z /5zGodEe84V8RA5GSnZsFCTdmmeE135qeFiNPNIR+c8J6zHlF1+xntgH58G2qivZW6IPzvXG0c UiX1jZFpoUUY/z0eR6ah87n/79r4YlEY6HpS8xKf9v9AAA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=pJ5dA3nay4TBeTs+B/fFog6f9SlG4APoh0dNsAcfnzE=; b=cIZXnT1y8z/0Mfz6Wf9UZ/jr3z hNwFngHzsD86ye+aLlyRXj2ffAL5xdNg8r76dr3e9pQ7OPBkADRGulGiTkcL25/p0iCZV8emUsy/F MsRm6VI8fypd5C0qVWPan0cStsavKPr59mQHFCiaCPjgsSoT9QhQlR0Dbs79nkVH9DHv2kT+7lCh2 h6yaOEmyVtAtBoT4yy7VR6IJDsrkvbnkB4asehcKefA1z2yIYuuAZNitL4idIctCV7xiu+CsVVvLA tEMU1tmeWX4ZzKsrGSwMqG+5h0DsfFycz6pPbsnrj2gcETZMEU9xOAv20nzaLl3JsDkiFs3LTFHvc DjPCNzBQ==; Received: by zero.zsh.org with local id 1r3UTF-000EMu-UK; Thu, 16 Nov 2023 04:59:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f180.google.com) smtp.remote-ip=209.85.208.180; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-lj1-f180.google.com ([209.85.208.180]:55369) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1r3USf-000E3p-1S; Thu, 16 Nov 2023 04:58:42 +0000 Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2c72e275d96so4910591fa.2 for ; Wed, 15 Nov 2023 20:58:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1700110720; x=1700715520; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pJ5dA3nay4TBeTs+B/fFog6f9SlG4APoh0dNsAcfnzE=; b=H+5Q6ek1gbGT155tBVdFp497d2OREwQdTqTJjQz47AZ4C2xXYfPXwk1Fi1vCdHGLzs RDohCAgYg55cAx7TPxhOYkyu0DhtsgGYs6GygkXXzn5CL7CTXWDC3NfBU4OimVh88Zvr p5ENCfqeLrU3Jv2A75kFu/iaIhZKkFm/STYDb5m4exCvQ1/As+QbsSiGMKanW/vwF0vP lNKh4CmYVjlzGuqUXSrCuU1W8w1hqhb5AQ+PocvVdUIw23BLsNDljeWjUj1ET9yiojkC X2YIMCGpmPfUuPFieuSa+klsRWuX8bfcy8cy8iPGI7X3Nim5vZC4LQbo+ATBl9Gvgxs9 4OpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700110720; x=1700715520; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pJ5dA3nay4TBeTs+B/fFog6f9SlG4APoh0dNsAcfnzE=; b=h1NS4eaB1YE3kKatVDezFIK40MxYcpIagdHCrklz65wda87FvJQu6qzUeSgkhWaRp9 tZscm3vWmNy6nwyxCpdpGuQ5Jaoc5WaU+Gpvq6UjhKpOyaavRuLMousu4hFTQ0Dhj758 6SsZJXdp2h/k+nqLqjrmIVhG1p6oz7oBcqPBNeqRRlbQ1EsBkeTHMTGIaXIvJNv3wDe2 9i/CVod/kKuDGthsE1JpJt+psygtrlRZqkHg6y5aDIxyfom6H7+9s32ViOrIGzpy3IP8 +xVjv4ADY/Qu7+pL/SmM54LS+TznesqN6YeF90M2Xr0sguYZorcY6+AsVPoVPWxTDfMz D05g== X-Gm-Message-State: AOJu0Yzd0Q5U24aHvgojTr0zbHFjc9LmR4xb0koja9ZqGVDYimQP5Is/ yo/4UBwLtEXd3Lej+HI4Ns1k1gX1lnCSb2Jnjb7vq20BEvMvaqqMG24= X-Google-Smtp-Source: AGHT+IHgoqP03+OX1h/U44cQ86BhTE8iFZKY6jJotKfvGCElBttMSrnh9nCTYu7E1UvJCYSdWTpe4PDGFXMLnxD0ZDM= X-Received: by 2002:a05:651c:b12:b0:2c2:9e5c:2c82 with SMTP id b18-20020a05651c0b1200b002c29e5c2c82mr6720543ljr.46.1700110719827; Wed, 15 Nov 2023 20:58:39 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Wed, 15 Nov 2023 20:58:28 -0800 Message-ID: Subject: Re: Bug: reading from tty inside process substitution To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52310 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: I've committed the patch so far, but another case occurred to me. On Tue, Nov 14, 2023 at 9:00=E2=80=AFPM Bart Schaefer wrote: > > > On Tue, Nov 14, 2023 at 7:33=E2=80=AFPM Bart Schaefer wrote: > > > > > > > read foo < <(read bar; echo $bar) > ... the multio loop is still reading /dev/tty and won't discover > until its I/O buffers fill up that "read foo" isn't consuming any more > input. Replace /dev/tty with /dev/zero and we're back to the unkillable loop. It's been this way since workers/12222 in July 2000. The bug report to which that was a response had to do with a write loop (emulating "tee" to multiple outputs). Do we actually need to discard EINTR on the read loop, or did that just get put in for symmetry?