From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by sourceware.org (Postfix) with ESMTPS id 9FA783850403 for ; Mon, 28 Jun 2021 22:17:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9FA783850403 Received: by mail-lf1-x136.google.com with SMTP id a11so35392986lfg.11 for ; Mon, 28 Jun 2021 15:17:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S5NJygdSggB8+Uhk9JOwj6Dzr4D3hpxi3VEojSKUdGY=; b=RwML46JUR5xI8zhfu+18OVOXkUTZJ4fn3JtuXh14OHE7/iN30nyBj9ULGcPbSJPZ02 eLR8MDnNH0NPuu6raxyHm5BtH3j50ZhUZFXS5p+h7f6m169Iwoj42FsYESw/HZWeupMT Ofphl9Y7LfYkTFVzqLhqB3xMz6eyIY9S1+5w8M74lcO6gKJyhx9/0IDGnSLD+4cJZ/GB E6fZCb/v8O5GLBClF21fWXXwoclqIH4wLZO9z/uauFvWfVRgUCzRfmAoTo0ewyrcpcYw EaU96jqlYOnR4/yWI/r/qsFc6ZN2tR//8Yqv8ctG3eZmirsDAEWRZ36RyCk/F+MG/2EJ 8ylA== X-Gm-Message-State: AOAM533R1Lq0TZib533YnT3mfm/51LpSx6W1QHs/9XeRqpqz82cJqiqt bCdzLChDIMZDAO5LXEwq4JF6TnI4lo6h/R4QPPs= X-Google-Smtp-Source: ABdhPJx48IpI6sEXL/nKlb5RMff70APIjjU9dKKMf5DteELMM74AZ8D6d2nyer5qhWqxJ3f64SmqtCToCW1IO83917E= X-Received: by 2002:a05:6512:374b:: with SMTP id a11mr19976258lfs.377.1624918668514; Mon, 28 Jun 2021 15:17:48 -0700 (PDT) MIME-Version: 1.0 References: <20210617175751.1619846-1-adhemerval.zanella@linaro.org> <20210617175751.1619846-2-adhemerval.zanella@linaro.org> <8552a710-3ae4-8cf2-28a2-cd6dced45abf@linaro.org> In-Reply-To: <8552a710-3ae4-8cf2-28a2-cd6dced45abf@linaro.org> From: Godmar Back Date: Mon, 28 Jun 2021 18:17:37 -0400 Message-ID: Subject: Re: [PATCH 2/2] posix: Add terminal control setting support for posix_spawn To: Adhemerval Zanella Cc: libc-alpha@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2021 22:17:51 -0000 On Mon, Jun 28, 2021 at 6:03 PM Adhemerval Zanella wrote: > > > So there is no SIGTTOU being generated. I even tried to add a timeout on > the helper process to check if the problem is the signal being generated > asynchronously, but it is works as intended. > I'm not familiar with the libc testing environment. When a process runs in it, what is its controlling terminal? Is it part of a session? Note that SIGTTOU is generated only if the process is part of a session and if the terminal in question has a foreground process group. See https://github.com/torvalds/linux/blob/master/drivers/tty/tty_jobctrl.c#L49-L60