From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nadia.Derbey-6ktuUTfB/bM@public.gmane.org Subject: [PATCH -cryo 1/1] Correctly close the semundo procfile after restarting the undo list Date: Mon, 30 Jun 2008 10:38:22 +0200 Message-ID: <20080630083841.136024000@bull.net> References: <20080630083821.916524000@bull.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline; filename=cryo_fix_semundo_procfd_close.patch 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: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Cc: Nadia Derbey List-Id: containers.vger.kernel.org [ PATCH 01/01 ] This is a trivial patch that correctly closes the semundo file after restoring the semundo list. Signed-off-by: Nadia Derbey --- cr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: cryo-001/cr.c =================================================================== --- cryo-001.orig/cr.c 2008-06-27 17:25:57.000000000 +0200 +++ cryo-001/cr.c 2008-06-30 11:15:41.000000000 +0200 @@ -1447,7 +1447,7 @@ static int restore_semundo(int fd, pid_t Free(semid); Free(semadj); - PT_CLOSE(pid, fd); + PT_CLOSE(pid, procfd); return ret; } --