aboutsummaryrefslogtreecommitdiff
path: root/src/init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cc')
-rw-r--r--src/init.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.cc b/src/init.cc
index 5f6e325..a38aec4 100644
--- a/src/init.cc
+++ b/src/init.cc
@@ -1,5 +1,7 @@
#include "init.h"
+#include <fcntl.h>
+
using namespace std;
namespace ov4
@@ -15,6 +17,7 @@ Published under GNU AFFERO GENERAL PUBLIC LICENSE (AGPL) Version 3." << endl;
signal_init();
+ tty_fd = open("/dev/tty", O_RDWR);
}