diff options
Diffstat (limited to 'src/self_pipe.cc')
| -rw-r--r-- | src/self_pipe.cc | 21 |
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 |
