From mboxrd@z Thu Jan 1 00:00:00 1970 From: sukadev-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org Subject: Re: [RFC][PATCH][cryo] Save/restore state of unnamed pipes Date: Wed, 18 Jun 2008 15:55:55 -0700 Message-ID: <20080618225555.GA29980@us.ibm.com> References: <20080617212950.GB11826@us.ibm.com> <20080617223039.GB26942@us.ibm.com> <1213745472.16057.37.camel@localhost.localdomain> <20080618003214.GA14699@us.ibm.com> <1213754646.16057.107.camel@localhost.localdomain> <20080618180025.GA25261@us.ibm.com> <1213819055.28482.50.camel@localhost.localdomain> <20080618215612.GA27603@us.ibm.com> <1213828689.28482.92.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1213828689.28482.92.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@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: Matt Helsley Cc: Containers List-Id: containers.vger.kernel.org | | Now restart does : | | int pipefds[2]; | | pipe(pipefds); /* | * kernel is allowed to return pipefds[0] == 12 and | * pipefds[1] == 11 | */ | | dup2(pipefds[0], 11); /* closes pipefds[1]! */ | dup2(pipefds[1], 12); Aah. I see it now (finally). Thanks, Suka