From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thompson, David" Subject: Re: [PATCH 08/15] gnu: build: Add Linux container module. Date: Thu, 9 Jul 2015 08:56:02 -0400 Message-ID: References: <1436188604-2813-1-git-send-email-dthompson2@worcester.edu> <1436188604-2813-8-git-send-email-dthompson2@worcester.edu> <87r3okhy9m.fsf@gnu.org> <87380yjosb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDBN4-0005UY-0X for guix-devel@gnu.org; Thu, 09 Jul 2015 08:56:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZDBMz-0004UM-Fg for guix-devel@gnu.org; Thu, 09 Jul 2015 08:56:09 -0400 Received: from mail-la0-f42.google.com ([209.85.215.42]:35344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZDBMy-0004Re-VM for guix-devel@gnu.org; Thu, 09 Jul 2015 08:56:05 -0400 Received: by labgy5 with SMTP id gy5so93471359lab.2 for ; Thu, 09 Jul 2015 05:56:02 -0700 (PDT) In-Reply-To: <87380yjosb.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Cc: guix-devel , David Thompson On Wed, Jul 8, 2015 at 5:57 PM, Ludovic Court=C3=A8s wrote: > "Thompson, David" skribis: > >>>> +(test-assert "call-with-container, pid namespace" >>>> + (zero? >>>> + (call-with-container '() >>>> + (lambda () >>>> + (match (primitive-fork) >>>> + (0 >>>> + ;; The first forked process in the new pid namespace is pid= 2. >>>> + (assert-exit (=3D 2 (getpid)))) >>> >>> But its parent doesn=E2=80=99t sees itself as PID 1? >> >> Only if it were to 'exec'. The reason being that PID namespaces are >> special in how they treat the process that created the new namespace. >> It's somewhat confusing. > > Hmm, indeed. :-) > >> From 83943ab47145180f13d3c08490a9ae09fccf3b92 Mon Sep 17 00:00:00 2001 >> From: David Thompson >> Date: Tue, 7 Jul 2015 21:58:15 -0400 >> Subject: [PATCH 1/2] build: file-systems: Import (guix build syscalls) f= or >> non-static Guiles. >> >> * gnu/build/file-systems.scm: Import (guix build syscalls) when 'mount' = is not >> defined. >> * gnu/system.scm (operating-system-activation-script): Include (guix bui= ld >> syscalls) module in derivation. > > LGTM. > >> From 72705fd6a8cd7b60bd727221897dc8bb79e3e4d7 Mon Sep 17 00:00:00 2001 >> From: David Thompson >> Date: Tue, 2 Jun 2015 08:48:16 -0400 >> Subject: [PATCH 2/2] gnu: build: Add Linux container module. >> >> * gnu/build/linux-container.scm: New file. >> * gnu-system.am (GNU_SYSTEM_MODULES): Add it. >> * .dir-locals.el: Add Scheme indent rules for 'call-with-clone', 'with-c= lone', >> 'call-with-container', and 'container-excursion'. >> * tests/containers.scm: New file. >> * Makefile.am (SCM_TESTS): Add it. > > OK! I found and fixed the race condition in the 'container-excursion' test. Pus= hed! - Dave