From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Serge E. Hallyn" Subject: Re: [C/R Test][PATCH 1/4] Add -P option to ns_exec Date: Tue, 26 May 2009 08:47:14 -0500 Message-ID: <20090526134714.GA10127@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline 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: sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org Quoting sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org (sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org): > From: Sukadev Bhattiprolu > > ns_exec knows the pid of the container-init in its own namespace (this > is usually the global pid since we normally run ns_exec in init-pid-ns). > If ns_exec writes out this pid from its own namespace, wrapper scripts > can find the process they created more easily. > > killall and pidof assume that all previous instances of the test program > have thawed and exited gracefully :-) As such they are not very friendly > during early testing and/or complicate the wrapper scripts. > > Signed-off-by: Sukadev Bhattiprolu Thanks Suka, all 5 patches applied. Are you working on any common functions to do the libcgroup mountpoint detection in the .c test files? (If not, I'll do it) thanks, -serge