diff options
author | Andreas Volz <andreas.volz@tux-style.com> | 2011-11-29 23:48:04 +0100 |
---|---|---|
committer | Andreas Volz <andreas.volz@tux-style.com> | 2011-11-29 23:48:04 +0100 |
commit | 2b8cfc887ef678c9ade0dcefc7da05acb0dafefa (patch) | |
tree | 5023b4cd6380c77499d109ac4dfeb3f275b66062 /src | |
parent | 7a3242b77ff1dea057daf62b453e9d079768ce42 (diff) | |
download | dbus-c++-2b8cfc887ef678c9ade0dcefc7da05acb0dafefa.tar.gz |
- dbus-c++ passes now compiling on ubuntu 8.10 machine (-lrt addded for Test1/TestApp)
- identified a potential problem in pipe.cpp and marked it with FIXME
- changed version to 0.9.0-pre1 to inform it's near to 1.0 stable release
Diffstat (limited to 'src')
-rw-r--r-- | src/pipe.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pipe.cpp b/src/pipe.cpp index 21f4985..01211b3 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -62,6 +62,7 @@ Pipe::Pipe(void(*handler)(const void *data, void *buffer, unsigned int nbyte), c void Pipe::write(const void *buffer, unsigned int nbytes) { + // TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work... // first write the size into the pipe... ::write(_fd_write, static_cast <const void *>(&nbytes), sizeof(nbytes)); @@ -71,6 +72,7 @@ void Pipe::write(const void *buffer, unsigned int nbytes) ssize_t Pipe::read(void *buffer, unsigned int &nbytes) { + // TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work... // first read the size from the pipe... ::read(_fd_read, &nbytes, sizeof(nbytes)); @@ -80,5 +82,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); } |