Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273028
b: refs/heads/master
c: 17e0520
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent 230019a commit a88015e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 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: 0a9e70b1cd0f7ee82a65d19edfcd31664ef65f69
refs/heads/master: 17e052093bcd21eaf9eb6e792cd76fdc4f0e3505
7 changes: 6 additions & 1 deletion trunk/arch/um/drivers/chan_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,12 @@ void register_winch(int fd, struct tty_struct *tty)
return;

pid = tcgetpgrp(fd);
if (!is_skas_winch(pid, fd, tty) && (pid == -1)) {
if (is_skas_winch(pid, fd, tty)) {
register_winch_irq(-1, fd, -1, tty, 0);
return;
}

if (pid == -1) {
thread = winch_tramp(fd, tty, &thread_fd, &stack);
if (thread < 0)
return;
Expand Down
6 changes: 1 addition & 5 deletions trunk/arch/um/os-Linux/skas/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@

int is_skas_winch(int pid, int fd, void *data)
{
if (pid != getpgrp())
return 0;

register_winch_irq(-1, fd, -1, data, 0);
return 1;
return pid == getpgrp();
}

static int ptrace_dump_regs(int pid)
Expand Down

0 comments on commit a88015e

Please sign in to comment.