summaryrefslogtreecommitdiff
path: root/libcutils/uevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcutils/uevent.cpp')
-rw-r--r--libcutils/uevent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcutils/uevent.cpp b/libcutils/uevent.cpp
index bf244d2c7..40bbd5c8f 100644
--- a/libcutils/uevent.cpp
+++ b/libcutils/uevent.cpp
@@ -101,7 +101,7 @@ int uevent_open_socket(int buf_sz, bool passcred) {
memset(&addr, 0, sizeof(addr));
addr.nl_family = AF_NETLINK;
- addr.nl_pid = getpid();
+ addr.nl_pid = 0;
addr.nl_groups = 0xffffffff;
s = socket(PF_NETLINK, SOCK_DGRAM | SOCK_CLOEXEC, NETLINK_KOBJECT_UEVENT);