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
This commit is contained in:
Harald Welte 2020-12-04 10:27:41 +01:00
parent d8e59b208c
commit 26fc9136b0
1 changed files with 1 additions and 1 deletions

View File

@ -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));