Initialize `do_step' in lwp struct initialization

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Initialize `do_step' in lwp struct initialization

Kevin Buettner
I've just committed the patch below.

        * lwp-pool.c (hash_find): Initialize `do_step' in the newly allocated
        lwp struct.

Index: lwp-pool.c
===================================================================
RCS file: /cvs/src/src/rda/unix/lwp-pool.c,v
retrieving revision 1.6
diff -u -p -r1.6 lwp-pool.c
--- lwp-pool.c 11 Nov 2005 20:29:57 -0000 1.6
+++ lwp-pool.c 14 Oct 2010 18:07:43 -0000
@@ -489,6 +489,7 @@ hash_find (pid_t lwp)
   l->state = lwp_state_uninitialized;
   l->next = l->prev = NULL;
   l->status = 42;
+  l->do_step = 0;
 
   hash[slot] = l;
   hash_population++;