OpenVZ Forum


Home » Mailing lists » Devel » [PATCH -cryo 1/1] Correctly close the semundo procfile after restarting the undo list
[PATCH -cryo 1/1] Correctly close the semundo procfile after restarting the undo list [message #31432] Mon, 30 June 2008 08:38 Go to previous message
Nadia Derbey is currently offline  Nadia Derbey
Messages: 114
Registered: January 2008
Senior Member
[ PATCH 01/01 ]

This is a trivial patch that correctly closes the semundo file after restoring
the semundo list.

Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net>

---
 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;
 }
 

--
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Previous Topic: [RFC PATCH 6/6] IPC/sem: .write operation for /proc/<self>/semundo
Next Topic: mini-summit and ols
Goto Forum:
  


Current Time: Sat Aug 02 10:39:07 GMT 2025

Total time taken to generate the page: 0.76406 seconds