refactor(fd_streambuf): Cleanup
This commit is contained in:
parent
acb9ed910d
commit
dd960cc5b5
5 changed files with 13 additions and 13 deletions
src/components
|
@ -272,7 +272,7 @@ void controller::read_events() {
|
|||
|
||||
// Process event on the internal fd
|
||||
if (m_queuefd[PIPE_READ] && FD_ISSET(static_cast<int>(*m_queuefd[PIPE_READ]), &readfds)) {
|
||||
char buffer[BUFSIZ]{'\0'};
|
||||
char buffer[BUFSIZ];
|
||||
if (read(static_cast<int>(*m_queuefd[PIPE_READ]), &buffer, BUFSIZ) == -1) {
|
||||
m_log.err("Failed to read from eventpipe (err: %s)", strerror(errno));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue