From bf5ad4d6b7ad54ae386cb54f9356ea6bb2485e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 6 Jan 2019 20:41:34 +0100 Subject: [PATCH] module/network: both thrd_current() and getpid() are 32-bit --- modules/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/network.c b/modules/network.c index b10dfc0..9e747c1 100644 --- a/modules/network.c +++ b/modules/network.c @@ -122,7 +122,7 @@ content(struct module *mod) static uint32_t nl_pid_value(void) { - return thrd_current() << 16 | getpid(); + return thrd_current() ^ getpid(); } /* Connect and bind to netlink socket. Returns socket fd, or -1 on error */