diff --git a/pkg/uevent/uevent.go b/pkg/uevent/uevent.go index 9ea6eda158..1904f8795d 100644 --- a/pkg/uevent/uevent.go +++ b/pkg/uevent/uevent.go @@ -9,7 +9,6 @@ package uevent import ( "bufio" "io" - "os" "strings" "golang.org/x/sys/unix" @@ -35,7 +34,9 @@ type ReaderCloser struct { func NewReaderCloser() (io.ReadCloser, error) { nl := unix.SockaddrNetlink{ Family: unix.AF_NETLINK, - Pid: uint32(os.Getpid()), + // Passing Pid as 0 here allows the kernel to take care of assigning + // it. This allows multiple netlink sockets to be used. + Pid: uint32(0), Groups: 1, }