]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 297838
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 14 Apr 2016 15:24:45 +0000 (15:24 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 14 Apr 2016 15:24:45 +0000 (15:24 +0000)
commit8f5769eff867e5200f3ceb1ea3fb3efc501efd1f
treea7f6088f9050aa31ecf81bd3460b10d20b453172
parent6e54820a5646b25a93c9467b94add34d04b9ee9f
MFC 297838

Fix an intermittent bug in sbin/devd/client_test.stream

In case where the two events were being received in separate reads, the
event buffer was being null-terminated at the wrong offset.

Also, factored out some common code between the tests, and fixed a comment.

git-svn-id: svn://svn.freebsd.org/base/stable/10@297970 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/devd/tests/client_test.c