aboutsummaryrefslogtreecommitdiff
path: root/src/self_pipe.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-18 14:57:06 +0000
committer_ov4 <ov4@ov4.org>2026-10-18 14:57:06 +0000
commitf7319b36f4f48cdf065b9a1472c9a848ca6f95bc (patch)
treecedef12b3a1e803c605157cbbba6d2c8c826338d /src/self_pipe.cc
parentcd55aa462b112896240ab736bf60035fdb30ca2d (diff)
adapt self pipe
Diffstat (limited to 'src/self_pipe.cc')
-rw-r--r--src/self_pipe.cc21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/self_pipe.cc b/src/self_pipe.cc
deleted file mode 100644
index 42e61d8..0000000
--- a/src/self_pipe.cc
+++ /dev/null
@@ -1,21 +0,0 @@
-#include "pipe.h"
-
-#include <unistd.h>
-#include <cstdlib>
-#include <fcntl.h>
-
-#include "error.h"
-
-namespace ov4
-{
-
-void self_pipe_init()
-{
- int ret = pipe2(self_pipe_fd, O_NONBLOCK);
- if (ret != 0)
- {
- throw T_error(error_code::FAIL_TO_OPEN_PIPE, "Fail to open self pipe");
- }
-}
-
-} \ No newline at end of file