Util-Linux package development
 help / color / mirror / Atom feed
From: Bruce Dubbs <bruce.dubbs@gmail.com>
To: Jan Schaumann <jschauma@netmeister.org>, util-linux-ng@vger.kernel.org
Subject: Re: more(1) may attempt to tcsetattr(3) despite lacking controlling terminal
Date: Thu, 13 Oct 2016 14:14:02 -0500	[thread overview]
Message-ID: <57FFDCFA.4070407@gmail.com> (raw)
In-Reply-To: <20161013143932.GA29451@netmeister.org>

Jan Schaumann wrote:
> Hello,
>
> Yesterday I reported the following bug to the Debian maintainers of the
> 'util-linux' package.  They suggested I should bring it up here:
>
>
> more(1) may attempt to call tsetattr(3) on stderr even if its process is
> not in a process group with a controlling terminal.  As a result,
> SIGTTOU will be generated, suspending the process.
>
> 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.

   -- Bruce


  reply	other threads:[~2016-10-13 19:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13 14:39 more(1) may attempt to tcsetattr(3) despite lacking controlling terminal Jan Schaumann
2016-10-13 19:14 ` Bruce Dubbs [this message]
2016-10-13 20:18   ` Jakob Unterwurzacher
2016-10-13 20:52     ` Bruce Dubbs
2016-10-19  9:53       ` Karel Zak
2016-10-19 10:09 ` Karel Zak
2016-10-20 14:56   ` Sami Kerola

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=57FFDCFA.4070407@gmail.com \
    --to=bruce.dubbs@gmail.com \
    --cc=jschauma@netmeister.org \
    --cc=util-linux-ng@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox