summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Clements <aclements@csail.mit.edu>2009-08-14 14:47:44 -0700
committerAustin Clements <aclements@csail.mit.edu>2009-08-14 14:47:44 -0700
commit42315c806f5263582ed050e69acecc612b593475 (patch)
tree8e9a1ed2115806b6b1b1cf1650d333ade6fbfb5d
parente506f7a26d194c35db617afc9f441176368322b5 (diff)
downloadgolang-42315c806f5263582ed050e69acecc612b593475.tar.gz
Zero thread structure so we don't continue with a bogus
signal. R=rsc APPROVED=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=33249 CL=33296
-rw-r--r--src/libmach/linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmach/linux.c b/src/libmach/linux.c
index 20e62ee7a..46724b87e 100644
--- a/src/libmach/linux.c
+++ b/src/libmach/linux.c
@@ -199,6 +199,7 @@ attachthread(int pid, int tid, int *new, int newstate)
t = malloc(sizeof *t);
if(t == nil)
return nil;
+ memset(t, 0, sizeof *t);
thr[nthr++] = t;
t->pid = pid;