Skip to content

Fix epoll1 test (initialize addrlen for accept())#705

Merged
karya0 merged 2 commits intodmtcp:masterfrom
gc00:epoll1-test
Sep 24, 2018
Merged

Fix epoll1 test (initialize addrlen for accept())#705
karya0 merged 2 commits intodmtcp:masterfrom
gc00:epoll1-test

Conversation

@gc00
Copy link
Copy Markdown
Contributor

@gc00 gc00 commented Sep 15, 2018

Trivial to reviw (one-line change)

Copy link
Copy Markdown
Contributor

@jiajuncao jiajuncao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG.

}

socklen_t addrlen;
socklen_t addrlen = sizeof(struct sockaddr);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, it should be sizeof(sockaddr) since struct sockaddr and struct sockaddr_in could be of different sizes but I think it's fine here for this test.

@karya0 karya0 merged commit 8024155 into dmtcp:master Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants