mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
3210820847
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> |
||
---|---|---|
.. | ||
linux | ||
process.rs | ||
syslog.rs | ||
tube.rs |