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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17033 invoked from network); 24 Oct 2021 00:55:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Oct 2021 00:55:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1635036910; b=elHvIANVuev68sAk54BLdppUso6/i5SaAdBTX32r7k1Rbpr0wkS5Yw/fagtT32AvZHs6MIyiJB Z+4NFXqPOjscfY7fBNJ1hwCQ6CPPDnULQ2TwjQUpzE9ZqCs988eT47xJ4JAC9AJpUHWy+oGYXO 5vffEP7FzBdHhTp/68ykxKGHSa6Vlabb6gYB/j9QifZaREL4OUYr71iXevo0uKjZaeCjWLOdUU 5HUyFNRJmdm419VRdYqyIjjmeCVAWpmdXKfMX3mS+KGZ6Pw1ApmYKQcnCYH82iaMyvxbQJHl6+ peLCbeEDrN+fjIO1DfPxcHQX5cYeMOLxRF/hSUxZv6feYA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f43.google.com) smtp.remote-ip=209.85.166.43; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1635036910; bh=4IjjsdZYRuNnH4jPXgndxh1DQD+9dMRknAp4ACS+Nc8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=lvH4vGy4TUr/33Ci3h1d7hlB/Znv3cuyKejHMAtuGKCQHvOWCq+3yOwKR0Eo0lKyhMqvQdo4jC qIUn9sgsnmSi0IV2sXsKzqWG3CFxA/hQFmanVDXHBAdzNYfCfsE0AxCUpdndEN9WMzwbbAhdd7 PRlCup6ziMrf/URSaoMYSTfPhluTWqUuxerQWW79MMbqEGc2Uwa+hfpjlY/4ANrLB6JqINERGs 1VnH9JcvRVNeoThK7HhitZp6j9oMyYDDrNXRAjlMryaWmSVJvByLVpcaCwvEHzYMHNF190toxb KahiLW04pXgLs+rtgfsrat0CSR6UkOnsugm7IUO2MO3R/Q==; 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-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=4IjjsdZYRuNnH4jPXgndxh1DQD+9dMRknAp4ACS+Nc8=; b=ooP76swQiVNfdJWNrQcis0sKI9 kbaM7bjRuPA46N99MIE0GqX/HPlFkgQCDSGIWHsEBFZFYXABwx5gPRXYs2dmnEzHucz/G8RkyP2G2 cJYMzLQ1yHZXI9/ctnfe4iZlEko8zC6tXzMtt+ZwyVtaHlCV6CbMKAyYh7eINhmQnwKmt2a2wWETC KtO0m8rUEE3aQXc91Ng0eb+Wc/tj8kAj69BQ1GN4rZasIMY/vqVcccYLCrOVi/cOGgM+JDfE5NtTl iixGbSWKnErv5OjHAVSSFIdysmvFBBfSm/y9JEGKlS37VvY/iMFbSHcO5TyDo4ezCSTFvmCVCD0m5 nqRf+1Ww==; Received: from authenticated user by zero.zsh.org with local id 1meRn3-00047p-B0; Sun, 24 Oct 2021 00:55:09 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f43.google.com) smtp.remote-ip=209.85.166.43; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f43.google.com ([209.85.166.43]:45582) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1meRmD-0003Mx-0k; Sun, 24 Oct 2021 00:54:17 +0000 Received: by mail-io1-f43.google.com with SMTP id 188so10491996iou.12 for ; Sat, 23 Oct 2021 17:54:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=4IjjsdZYRuNnH4jPXgndxh1DQD+9dMRknAp4ACS+Nc8=; b=ZpPeVHyEIMrVyK14/TVzZqgDHnWqvq/GtCX1VBTmSbwGUNoRsp3fLCQK+7J7LINt5l XwNYq4utXcj3GXWDM1dugo9SaM7F8QjyB+ofahXG8XR20jIheIKxRyY5Mz7S8LKFKP7+ dQu5XauUv56wcnkFkBEtuaOBUJeWn5WvfZNZXMOD1SstZMoeWmN7RlJ7mMQJR/9TeyQz sPD+hMic90/39o9+UbGN1xF/EZjMfFftyyJILIPVmJ7Sdv0sPcMB56hdmi0hcKp32I7C OT9PjEuoowzCL6guKbz85pZZM9l0EFVTwQbF6iDD731JMNTA5xjeqoMa6jVN1LERbLC8 D0wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=4IjjsdZYRuNnH4jPXgndxh1DQD+9dMRknAp4ACS+Nc8=; b=GSIxCVf/Ph/VX6a11dMH1cTvy+HgyYLfR0yUGgKreekRJrJmL94IZxv0Xct+eFfVXb V1XpOyNHYzhevZUlJHFxPdanqGWC7SCCC0Mj0NhwAVmecyefWu5fkyK/Ij9bb3KVCNPt 40NOszaU9cnHDddw7qiYHVwNF7umiJKx2I+JHlvM5IQ+iZve3ffg/dc8Ol/JIpSO8C+Z N2ITF+eUgAOLg239pDJ5LATvRIJmspKf8Rs5j0RjwXLBRnPrIbTaMk8Ais3Gy0XTQroA Td3oZMIXejWxRJ+sQeoyLaueR1M7FV0dattIYECdVuXsSlbFMe10TYxsSTv+YlKft3I5 lA6A== X-Gm-Message-State: AOAM5307gGALv0UpWHemwkP91bZUuh4YsTkm0dPHKO582I+Qc+ib1nsv +zGAYI7aVfJO0HzmN4xLCZ/L7Z8mR/+DbvbuTGYl78Z4xlE= X-Google-Smtp-Source: ABdhPJxgHYZp1CdPAP5ibHRoeCiskX5ivhIMbyFPwy5cRlU/g78WdrMyIthGSSDydnWYMzXmKtbcOyrt1ZyacTUJLjs= X-Received: by 2002:a05:6638:3048:: with SMTP id u8mr5436390jak.103.1635036855643; Sat, 23 Oct 2021 17:54:15 -0700 (PDT) MIME-Version: 1.0 From: Pier Paolo Grassi Date: Sun, 24 Oct 2021 02:53:40 +0200 Message-ID: Subject: suspended (tty output) To: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000f9b1c305cf0eae87" X-Seq: 27279 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --000000000000f9b1c305cf0eae87 Content-Type: text/plain; charset="UTF-8" hello, I have something like this: function_that_use_ffmpeg | while read line; do ... done It appears that ffmpeg access the tty directly, for example when asking for interactive input in this case, the process got suspended with the message suspended (tty output) if I pipe it to cat, it is not suspended If it convert the second part of the pipe to a subshell: function_that_use_ffmpeg | (while read line; do ... done) it is not suspended. If I disable job control with setopt nomonitor, it is not suspended. I wonder why the subshell changes the behaviour, and if I can solve this problem without using this hack and without disabling job control thanks Pier Paolo Grassi --000000000000f9b1c305cf0eae87 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
hello, I have something like this:

=
function_that_use_ffmpeg | while read line; do ... done

It appears that ffmpeg access the tty directly, for exampl= e when asking for interactive input

in this case, = the process got suspended with the message suspended=C2=A0(tty output)
if I pipe it to cat, it is not suspended
If it convert the = second part of the pipe to a subshell:

function_th= at_use_ffmpeg | (while read line; do ... done)

it is not suspended.
If I disable job control with setopt nomoni= tor, it is not suspended.
I wonder why the subshell changes the b= ehaviour, and if I can solve this problem without using this hack and witho= ut disabling job control

thanks

Pier Paolo Grassi
--000000000000f9b1c305cf0eae87--