diff --git a/kernel-src/sys/jobctl.c b/kernel-src/sys/jobctl.c index 3f4dcd17..c16ac554 100644 --- a/kernel-src/sys/jobctl.c +++ b/kernel-src/sys/jobctl.c @@ -73,6 +73,7 @@ int jobctl_setctty(proc_t *proc, void *_ctty, bool steal) { } else if (steal) { // vnode reference gets transferred over to the new proc tty->session->session.controllingtty = NULL; + proc->session.controllingtty = tty; tty->session = proc; } else { error = EPERM;