Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65223
b: refs/heads/master
c: a64314e
h: refs/heads/master
i:
  65221: 89844a0
  65219: c7bf58b
  65215: e01ff9b
v: v3
  • Loading branch information
Jan Lübbe authored and Linus Torvalds committed Sep 29, 2007
1 parent 7a6ad55 commit 62499a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ed7fdff5d6754f9ef9e47bbf0b171d3d96fb7e41
refs/heads/master: a64314e62d89562b6fc77593648bec3acc35bf61
7 changes: 5 additions & 2 deletions trunk/drivers/char/vt_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,15 +1208,18 @@ void change_console(struct vc_data *new_vc)
/*
* Send the signal as privileged - kill_pid() will
* tell us if the process has gone or something else
* is awry
* is awry.
*
* We need to set vt_newvt *before* sending the signal or we
* have a race.
*/
vc->vt_newvt = new_vc->vc_num;
if (kill_pid(vc->vt_pid, vc->vt_mode.relsig, 1) == 0) {
/*
* It worked. Mark the vt to switch to and
* return. The process needs to send us a
* VT_RELDISP ioctl to complete the switch.
*/
vc->vt_newvt = new_vc->vc_num;
return;
}

Expand Down

0 comments on commit 62499a4

Please sign in to comment.