[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. debian/1.14.3-200-gb232f8a

Clint Adams schizo at debian.org
Tue Aug 23 13:06:12 UTC 2011


The following commit has been merged in the upstream branch:
commit ded60fd9e5bf66dbbdf37c1c22c970f8f86e0a9a
Author: Clint Adams <schizo at debian.org>
Date:   Tue Nov 18 18:18:31 2008 -0500

    communicate.c: patch from dann frazier to fix race condition when SysV IPC is used with a threaded application.  closes: #499142.

diff --git a/communicate.c b/communicate.c
index 73b3b48..2651e0d 100644
--- a/communicate.c
+++ b/communicate.c
@@ -521,9 +521,9 @@ void send_get_fakem(struct fake_msg *buf)
 
   if(init_get_msg()!=-1){
     pid=getpid();
+    semaphore_up();
     serial++;
     buf->serial=serial;
-    semaphore_up();
     buf->pid=pid;
     send_fakem(buf);
 

-- 
fakeroot



More information about the Fakeroot-commits mailing list