mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +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) {
|
} else if (steal) {
|
||||||
// vnode reference gets transferred over to the new proc
|
// vnode reference gets transferred over to the new proc
|
||||||
tty->session->session.controllingtty = NULL;
|
tty->session->session.controllingtty = NULL;
|
||||||
|
proc->session.controllingtty = tty;
|
||||||
tty->session = proc;
|
tty->session = proc;
|
||||||
} else {
|
} else {
|
||||||
error = EPERM;
|
error = EPERM;
|
||||||
|
|||||||
Reference in New Issue
Block a user