mirror of
https://github.com/golang/sys.git
synced 2026-02-08 03:36:03 +03:00
bb24a47a89eac6c1227fbcb2ae37a8b9ed323366
This commit relaxes SendmsgN behavior of introducing a dummy 1-byte payload when sending ancillary-only messages. The fake payload is not needed for SOCK_DGRAM type sockets, and actually breaks interoperability with other fd-passing software (journald is one known example). This introduces an additional check to avoid injecting dummy payload in such case. Backport of https://go.googlesource.com/go/+/93da0b6e66f24c4c307e0df37ceb102a33306174 Full reference at https:/golang.org/issue/6476#issue-51285243 Change-Id: I7cf00a1c7cde75fe62e00b98ccba6ac8469b0493 Reviewed-on: https://go-review.googlesource.com/60190 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This repository holds supplemental Go packages for low-level interactions with the operating system. To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
Languages
Go
85.8%
Assembly
12.3%
Shell
1.7%
C
0.1%