public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* forking in setsid
@ 2013-06-19 14:53 Damien Wyart
  2013-06-19 16:00 ` Sami Kerola
  0 siblings, 1 reply; 5+ messages in thread
From: Damien Wyart @ 2013-06-19 14:53 UTC (permalink / raw)
  To: util-linux

Hi,

While searching information about setsid and daemonization, I came accros
the following "bug" report in Debian :
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495881

Unfortunately, it doesn't seem to have been forwarded upstream after
creation, and never received an answer.

I would be interested in getting your opinions about it and the patch
attached to it.

Thanks in advance

Best regards,

Damien

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: forking in setsid
@ 2013-07-09 19:08 Daniel Kahn Gillmor
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Kahn Gillmor @ 2013-07-09 19:08 UTC (permalink / raw)
  To: Damien Wyart, Sami Kerola, Karel Zak, util-linux

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-09 19:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2013-07-09 19:08 Daniel Kahn Gillmor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox