all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
To: Shea Levy <shea@shealevy.com>
Cc: guix-devel <guix-devel@gnu.org>, "Ludovic Courtès" <ludo@gnu.org>,
	nix-dev <nix-dev@lists.science.uu.nl>
Subject: Re: Avoiding threads in the daemon
Date: Fri, 19 Dec 2014 19:46:13 +0100	[thread overview]
Message-ID: <54947275.9070803@logicblox.com> (raw)
In-Reply-To: <D247BB02-D0DE-466C-AEF5-A9DB6B0E4EE8@shealevy.com>

Hi,

On 19/12/14 19:41, Shea Levy wrote:

> Can't you unshare in the parent then setns back after fork?

In a multi-threaded program, that sounds incredibly racy :-)

(Though it's not clear to me whether unshare() works on the current process or
the current thread. Manpage says process...)

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/

  reply	other threads:[~2014-12-19 18:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-18 16:32 Avoiding threads in the daemon Ludovic Courtès
2014-12-19 18:20 ` Eelco Dolstra
2014-12-19 18:41   ` Shea Levy
2014-12-19 18:46     ` Eelco Dolstra [this message]
2014-12-19 21:31   ` Ludovic Courtès
2014-12-19 21:36     ` Luca Bruno
2014-12-20  0:11   ` Alexander Kjeldaas
2014-12-23 16:26   ` Eelco Dolstra
2014-12-26 22:02     ` Ludovic Courtès

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=54947275.9070803@logicblox.com \
    --to=eelco.dolstra@logicblox.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=nix-dev@lists.science.uu.nl \
    --cc=shea@shealevy.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.