From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: util-linux-owner@vger.kernel.org Received: from mail-lf0-f43.google.com ([209.85.215.43]:34707 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050AbcJMUwz (ORCPT ); Thu, 13 Oct 2016 16:52:55 -0400 Received: by mail-lf0-f43.google.com with SMTP id b81so152537707lfe.1 for ; Thu, 13 Oct 2016 13:52:37 -0700 (PDT) Subject: Re: more(1) may attempt to tcsetattr(3) despite lacking controlling terminal To: Jakob Unterwurzacher , util-linux-ng@vger.kernel.org References: <20161013143932.GA29451@netmeister.org> <57FFDCFA.4070407@gmail.com> <56b4e9fb-a01d-3578-b739-66b7b933a8c5@gmail.com> From: Bruce Dubbs Message-ID: <57FFF411.10800@gmail.com> Date: Thu, 13 Oct 2016 15:52:33 -0500 MIME-Version: 1.0 In-Reply-To: <56b4e9fb-a01d-3578-b739-66b7b933a8c5@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Sender: util-linux-owner@vger.kernel.org List-ID: Jakob Unterwurzacher wrote: > On 13.10.2016 21:14, Bruce Dubbs wrote: >>> >>> The following example illustrates the issue: >>> >>> $ /bin/sh -c "timeout 60 /bin/sh -c \"ls | more\"" >>> >>> This command will now hang until the timeout, since the shell, ls(1) and >>> more(1) commands invoked by timeout(1) will be suspended. >> >> It does not hang for me, but then I don't use systemd. Perhaps systemd should >> be fixed. > > Does not hang for me either on Fedora 24, and I am using systemd, but how is > this related to the init system If systemd was only an init system, I wouldn't object. It has subsumed much more than initialization, e.g udev, dhcp client, managing cgroups, 'seat management', etc. My initial reaction to the original problem is that it is cgroups related. -- Bruce