jobctl: fix ctty stealing

This commit is contained in:
Matheus
2026-08-14 12:22:14 -03:00
parent b8a5d847ab
commit 7a03f3cb0f
+1
View File
@@ -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;