Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some more error diagnostics.

  • Loading branch information...
commit b8f42a12dc1972b4621e8d4ef00f0e096de77b81 1 parent dad25dd
@nelhage authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  attach.c
View
2  attach.c
@@ -205,6 +205,7 @@ int attach_child(pid_t pid, const char *pty) {
if (ptrace_memcpy_to_child(&child, scratch_page, pty, strlen(pty)+1)) {
err = child.error;
+ error("Unable to memcpy the pty path to child.");
goto out_free_fds;
}
@@ -213,6 +214,7 @@ int attach_child(pid_t pid, const char *pty) {
0, 0, 0, 0);
if (child_fd < 0) {
err = child_fd;
+ error("Unable to open the tty in the child.");
goto out_free_fds;
}
Please sign in to comment.
Something went wrong with that request. Please try again.