martinpitt / umockdev

Mock hardware devices for creating unit tests and bug reporting
https://launchpad.net/umockdev
GNU Lesser General Public License v2.1
314 stars 58 forks source link

Handle spurious "connection refused" when sending a uevent #254

Closed bobhenz-jabil closed 2 months ago

bobhenz-jabil commented 2 months ago

This error was already being handled on the connect call right above these changes, but wasn't being handled on the call to sendmsg. Depending on the timing it was possible for the connect call to succeed while the sendmsg call failed with an ECONNREFUSED error leading to the test crashing from the abort call.

bobhenz-jabil commented 2 months ago

@martinpitt: I'm back with another PR. Let me know if you have questions or want changes.