diff options
Diffstat (limited to 'test/event-thread.cpp')
-rw-r--r-- | test/event-thread.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/event-thread.cpp b/test/event-thread.cpp index 714bc984..01120733 100644 --- a/test/event-thread.cpp +++ b/test/event-thread.cpp @@ -25,7 +25,11 @@ public: EventHandler() : notified_(false) { - pipe(pipefd_); + int ret = pipe(pipefd_); + if (ret < 0) { + ret = errno; + cout << "pipe() failed: " << strerror(ret) << endl; + } notifier_ = new EventNotifier(pipefd_[0], EventNotifier::Read, this); notifier_->activated.connect(this, &EventHandler::readReady); |