mirror of
https://github.com/polybar/polybar.git
synced 2026-03-15 04:35:19 +00:00
Move signal handling to eventloop class
This commit is contained in:
committed by
Patrick Ziegler
parent
a2f50f3b90
commit
3cc17a0e57
@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user