From 26fc9136b05bc0351eba436b3a5d0187438998ff Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 4 Dec 2020 10:27:41 +0100 Subject: [PATCH] mnl: Use mnl_socket_open() insatead of mnl_socket_open2() mnl_socket_open2 is not yet available on e.g. Debian 8. Furthermore, osmo_fd_register() will set the CLOEXEC flag on every file descriptor anyway, so there is no benefit from using mnl_socket_open2() at all. Change-Id: I0b37ffa148ff0c0a22281b490820353f5fef00eb --- src/mnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mnl.c b/src/mnl.c index 13d9c9eae..a7d3511ed 100644 --- a/src/mnl.c +++ b/src/mnl.c @@ -74,7 +74,7 @@ struct osmo_mnl *osmo_mnl_init(void *ctx, int bus, unsigned int groups, mnl_cb_t olm->priv = priv; olm->mnl_cb = mnl_cb; - olm->mnls = mnl_socket_open2(bus, SOCK_CLOEXEC); + olm->mnls = mnl_socket_open(bus); if (!olm->mnls) { LOGP(DLGLOBAL, LOGL_ERROR, "Error creating netlink socket for bus %d: %s\n", bus, strerror(errno));