crosvm/base/tests
A. Cody Schuffelen 3210820847 Convert ScmSocket to a struct
On MacOS there is no MSG_NOSIGNAL, but there is SO_NOSIGPIPE which is
set as a socket option. This changes ScmSocket from a trait to a wrapper
type that can guarantee SO_NOSIGPIPE is set once on every relevant
socket before it is used in situations that can produce signals.

The biggest wrinkle is that setsockopt can produce errors, which makes
the conversion into ScmSocket a case that can possibly error. Not all
places that accept sockets were prepared to return errors.

Bug: b/309020556
Change-Id: I079bbaf8803e137ca7c0e0ebe60e63de5df59cc0
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5021438
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Cody Schuffelen <schuffelen@google.com>
2023-11-22 05:47:15 +00:00
..
linux Convert ScmSocket to a struct 2023-11-22 05:47:15 +00:00
process.rs Rename "unix" to "linux" in code and docs 2023-10-11 01:15:07 +00:00
syslog.rs Pass logging args to child processes 2023-10-23 23:59:55 +00:00
tube.rs Remove descriptor_reflection exports from platform-specific code 2023-11-07 21:35:42 +00:00