HomeFreeBSD

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

Description

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.

Submitted by: will
MFC after: 3 days
Sponsored by: Spectra Logic Corp

Details

Provenance
asomersAuthored on
Parents
rS297837: Bruce Evans reported that there was a performance regression between
Branches
Unknown
Tags
Unknown