mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
jobctl: fix ctty stealing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user