Skip to content

Commit

Permalink
Merge pull request #1 from juanrubio/master
Browse files Browse the repository at this point in the history
src/pipe.cpp: fixed compile error with gcc 7.2 in Ubuntu 17.10
  • Loading branch information
pkgw authored Nov 27, 2017
2 parents 8f39fb2 + acbfee0 commit d56a171
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,6 @@ ssize_t Pipe::read(void *buffer, unsigned int &nbytes)
void Pipe::signal()
{
// TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work...
::write(_fd_write, '\0', 1);
char nullc[1] = {'\0'};
::write(_fd_write, nullc, 1);
}

0 comments on commit d56a171

Please sign in to comment.