- include headers needed to build on NetBSD
- Remove unused pty.h
- Initialize spty terminal before actually using it
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
#include <sys/select.h>
#include <err.h>
#include <errno.h>
-#include <pty.h>
+#include <string.h>
#include "xs.h"
{
struct termios new_term;
- if (tcgetattr(fd, old) == -1) {
+ if (tcgetattr(fd, old) == -1)
return;
- }
new_term = *old;
cfmakeraw(&new_term);
err(errno, "Could not read tty from store");
}
+ init_term(spty, &attr);
init_term(STDIN_FILENO, &attr);
console_loop(spty, xs, path);
restore_term(STDIN_FILENO, &attr);
#include <sys/socket.h>
#include <sys/un.h>
#include <string.h>
+#include <signal.h>
#include "xenctrl.h"
#include "utils.h"