diff options
Diffstat (limited to 'tools/console/daemon/io.c')
-rw-r--r-- | tools/console/daemon/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index 8bb18cafab..25ca40372f 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -147,7 +147,7 @@ static int domain_create_tty(struct domain *dom) int master; bool success; - if ((master = getpt()) == -1 || + if ((master = open("/dev/ptmx",O_RDWR|O_NOCTTY)) == -1 || grantpt(master) == -1 || unlockpt(master) == -1) { dolog(LOG_ERR, "Failed to create tty for domain-%d", dom->domid); |