diff options
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r-- | sys/kern/kern_kthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c index 520bf97..69c1140 100644 --- a/sys/kern/kern_kthread.c +++ b/sys/kern/kern_kthread.c @@ -276,6 +276,7 @@ kthread_add(void (*func)(void *), void *arg, struct proc *p, newtd->td_sleeptimo = 0; bcopy(&oldtd->td_startcopy, &newtd->td_startcopy, __rangeof(struct thread, td_startcopy, td_endcopy)); + newtd->td_sa = oldtd->td_sa; /* set up arg0 for 'ps', et al */ va_start(ap, fmt); |