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:
parent
92e8b121a0
commit
dc6b4f4767
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user