public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Damien Wyart <damien.wyart@gmail.com>,
	Sami Kerola <kerolasa@iki.fi>, Karel Zak <kzak@redhat.com>,
	util-linux@vger.kernel.org
Subject: Re: forking in setsid
Date: Tue, 09 Jul 2013 15:08:35 -0400	[thread overview]
Message-ID: <87k3kzd00c.fsf@alice.fifthhorseman.net> (raw)
In-Reply-To: CADJQGJfOj2GQNdoW89hC2LMukC_cwPuJVBiN6+xy64UphbOiZg@mail.gmail.com

[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]

Hi folks--

I'm not subscribed to the util-linux mailing list (it's a firehose i
don't have the capacity to drink from), so please keep me Cc'ed on
replies.

I'm sorry that my original report was to debian only, and was not
forwarded upstream until now, but i appreciate Damien Wyert dusting it
off.

When i originally wrote http://bugs.debian.org/495881, i asked the
following question:

> I don't understand /usr/bin/setsid terribly well: is this difference
> in behavior [between setsid as process group leader or not-leader]
> desirable for some reason?  If so, why?  The shipped documentation
> (setsid(1)) makes no mention of these behavioral inconsistencies.

These questions arose from struggling with setsid in the context of some
work with ssh, in particular the thread starting here:

 http://marc.info/?l=openssh-unix-dev&m=121927018112558&w=2

i ended up resolving that problem without needing to use setsid, and i
think i came away from it (due to the aforementioned behavioral
inconsistencies) with the sense that /usr/bin/setsid wasn't actually a
particularly reliable or predictable tool.

I don't know whether it's more appropriate to try to fix it, to provide
a "--behave-consistently-regardless-of-pg-leader-status" option, or just
to document the weirdnesses, but i would certainly be curious to know if
there are users of setsid that rely on this strange set of behaviors.

Regards,

        --dkg

[-- Attachment #2: Type: application/pgp-signature, Size: 965 bytes --]

             reply	other threads:[~2013-07-09 19:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-09 19:08 Daniel Kahn Gillmor [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-06-19 14:53 forking in setsid Damien Wyart
2013-06-19 16:00 ` Sami Kerola
2013-06-19 17:16   ` Damien Wyart
2013-07-09  9:36   ` Karel Zak

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=87k3kzd00c.fsf@alice.fifthhorseman.net \
    --to=dkg@fifthhorseman.net \
    --cc=damien.wyart@gmail.com \
    --cc=kerolasa@iki.fi \
    --cc=kzak@redhat.com \
    --cc=util-linux@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