src/msg/rdma: fixes failure on assert in notify()

The commit fixes incorrect eventfd handling introduced in
2e75b876d1

Signed-off-by: Alex Mikheev <alexm@mellanox.com>
This commit is contained in:
Alex Mikheev 2017-08-13 10:55:32 +00:00
parent aaf32d8f43
commit 44c895ea51
No known key found for this signature in database
GPG Key ID: 0F964A1EF0579522

View File

@ -610,7 +610,10 @@ void RDMAConnectedSocketImpl::cleanup() {
void RDMAConnectedSocketImpl::notify()
{
int i = 1;
// note: notify_fd is an event fd (man eventfd)
// write argument must be a 64bit integer
uint64_t i = 1;
assert(sizeof(i) == write(notify_fd, &i, sizeof(i)));
}