Commit c2947782 authored by Niels Möller's avatar Niels Möller
Browse files

* src/server_pty.c: Added a better warning message if opening

/dev/ptmx failes.

Rev: src/server_pty.c:1.12
parent 4d74090a
......@@ -175,6 +175,8 @@ int pty_allocate(struct pty_info *pty,
struct lsh_string *name = NULL;
if ((pty->master = open("/dev/ptmx", O_RDWR | O_NOCTTY)) < 0)
werror("pty_allocate: Opening /dev/ptmx failed (errno = %i): %z\n",
errno, strerror(errno));
return 0;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment