mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
When forking, the new thread deserves a name too. Don't just use the
td_startcopy section as it is not the right thing to do in other cases (e.g. if starting a new thread from one that is already named).
This commit is contained in:
parent
df2c0c36a5
commit
4b9322aee8
1 changed files with 1 additions and 0 deletions
|
|
@ -495,6 +495,7 @@ again:
|
|||
bcopy(&td->td_startcopy, &td2->td_startcopy,
|
||||
__rangeof(struct thread, td_startcopy, td_endcopy));
|
||||
|
||||
bcopy(&p2->p_comm, &td2->td_name, sizeof(td2->td_name));
|
||||
td2->td_sigstk = td->td_sigstk;
|
||||
td2->td_sigmask = td->td_sigmask;
|
||||
td2->td_flags = TDF_INMEM;
|
||||
|
|
|
|||
Loading…
Reference in a new issue