1
0
mirror of https://github.com/golang/go synced 2024-11-25 09:07:58 -07:00

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
This commit is contained in:
Austin Clements 2009-08-14 14:47:44 -07:00
parent 92e8b121a0
commit dc6b4f4767

View File

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