Move signal handling to eventloop class

This commit is contained in:
patrick96
2021-03-02 00:00:24 +01:00
committed by Patrick Ziegler
parent a2f50f3b90
commit 3cc17a0e57
8 changed files with 74 additions and 23 deletions

View File

@ -52,7 +52,7 @@ file_ptr::operator int() const {
// }}}
// implementation of file_descriptor {{{
file_descriptor::file_descriptor(const string& path, int flags) {
file_descriptor::file_descriptor(const string& path, int flags, bool autoclose) : m_autoclose(autoclose) {
if ((m_fd = open(path.c_str(), flags)) == -1) {
throw system_error("Failed to open file descriptor");
}