Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pty: fix using right fd

Use right fd when spawning child process.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
  • Loading branch information...
commit 3935a7743937a229a904a40df2cb746ab730a2ab 1 parent 5cdf947
@dvdhrm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/pty.c
View
4 src/pty.c
@@ -313,7 +313,7 @@ int kmscon_pty_open(struct kmscon_pty *pty, unsigned short width,
return -errno;
}
- ret = ev_eloop_new_fd(pty->eloop, &pty->efd, pty->fd,
+ ret = ev_eloop_new_fd(pty->eloop, &pty->efd, master,
EV_READABLE, pty_input, pty);
if (ret)
goto err_master;
@@ -371,7 +371,7 @@ int kmscon_pty_write(struct kmscon_pty *pty, const char *u8, size_t len)
buf:
ret = kmscon_ring_write(pty->msgbuf, u8, len);
if (ret)
- log_warn("cannot allocate buffer; dropping input");
+ log_warn("cannot allocate buffer; dropping output");
return 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.