From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: commit 7534432dcc3c654a8671b6b0cdffd1dbdbc73074 Date: Thu, 22 Jan 2009 20:06:03 -0600 Message-ID: <20090123020603.GA9267@us.ibm.com> References: <20090122184754.GA17511@us.ibm.com> <6599ad830901221507x796c154ck5fe4f95cc3eb8e0e@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <6599ad830901221507x796c154ck5fe4f95cc3eb8e0e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Paul Menage Cc: Linux Containers List-Id: containers.vger.kernel.org Quoting Paul Menage (menage-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org): > On Thu, Jan 22, 2009 at 10:47 AM, Serge E. Hallyn wrote: > > #!/bin/bash > > mount -t cgroup -o freezer none /cgroup > > sleep 100 & > > pid=`jobs -p` > > You can use $! to refer to the most recently started background process. Hah - thanks, I actually looked for something like that but couldn't find it. > > > mkdir /cgroup/1 > > echo $pid > /cgroup/1/tasks > > umount /cgroup > > mount -t cgroup -o freezer,ns none /cgroup > > This command should have failed with EBUSY, since freezer is already > part of an existing hierarchy. So I think it's a red herring in this > problem. > > > mount -t cgroup -o freezer none /cgroup > > #kill %1 > > Is there a reason for this commented-out line? Sorry, I'd meant to look into whether that needed to be there or not, but decided to put it off until after git bisecting, then forgot, probably because the bisect result was so confusing. I see you already sent a patch for the *real* problem, thanks! -serge