aboutsummaryrefslogtreecommitdiff
path: root/src/init.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-01 10:41:39 +0000
committer_ov4 <ov4@ov4.org>2026-09-01 10:41:39 +0000
commit6d9469d916bb80aa76c82097e60b725de1661d5c (patch)
tree1c8d4f046c46d387914bc73fd912dd6eac950a0d /src/init.cc
parent94c449ca42bd29de2c2fd137945550fe110fcd17 (diff)
real foreground/background
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);
}