diff options
Diffstat (limited to 'test/fence.cpp')
-rw-r--r-- | test/fence.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/fence.cpp b/test/fence.cpp index d2dfc9b6..d2865398 100644 --- a/test/fence.cpp +++ b/test/fence.cpp @@ -251,7 +251,12 @@ void FenceTest::requestComplete(Request *request) void FenceTest::signalFence() { uint64_t value = 1; - write(efd2_, &value, sizeof(value)); + int ret; + + ret = write(efd2_, &value, sizeof(value)); + if (ret != sizeof(value)) + cerr << "Failed to signal fence" << endl; + dispatcher_->processEvents(); } |