]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
reverting last commit, which broke all of valgrind.
authorDirk Mueller <dmuell@gmx.net>
Thu, 27 Nov 2003 09:07:47 +0000 (09:07 +0000)
committerDirk Mueller <dmuell@gmx.net>
Thu, 27 Nov 2003 09:07:47 +0000 (09:07 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2063

coregrind/vg_proxylwp.c

index 23f81c74e06e1d42aeec0e43800cfc6cb3420f19..8c4790e6662040f22bef21cbfaef232c4bb2c2f7 100644 (file)
@@ -894,8 +894,6 @@ static Int proxy_clone(ProxyLWP *proxy)
 {
    Int ret = -1;
 
-   proxy->lwp = -1;
-
    if (have_settid != 0) {
       ret = VG_(clone)(proxylwp, 
                       LWP_stack(proxy),
@@ -920,11 +918,13 @@ static Int proxy_clone(ProxyLWP *proxy)
            proxy->lwp = ret;
         }
        }
+       else 
+           have_settid = 1;
    }
 
    if (ret < 0) {
       vg_assert(have_settid == 0);
-      vg_assert(proxy->lwp == -1);
+      vg_assert(proxy->lwp == 0);
 
       ret = VG_(clone)(proxylwp, 
                       LWP_stack(proxy),
@@ -949,6 +949,7 @@ static Bool proxy_wait(ProxyLWP *proxy, Bool block, Int *status)
       if (block) {
         Int lwp = proxy->lwp;
 
+
         if(proxy->lwp != 0)
            do_futex(&proxy->lwp, VKI_FUTEX_WAIT, lwp, NULL, NULL);