diff --git a/executor/common_linux.h b/executor/common_linux.h index 27f93479..148ca0c3 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -881,8 +881,10 @@ static void netlink_wireguard_setup(void) int id, err; sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); - if (sock == -1) - fail("socket(AF_NETLINK) failed\n"); + if (sock == -1) { + debug("socket(AF_NETLINK) failed: %s\n", strerror(errno)); + return; + } id = netlink_wireguard_id_get(&nlmsg, sock); if (id == -1) diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 2441984c..ea018b42 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -1900,8 +1900,10 @@ static void netlink_wireguard_setup(void) int id, err; sock = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC); - if (sock == -1) - fail("socket(AF_NETLINK) failed\n"); + if (sock == -1) { + debug("socket(AF_NETLINK) failed: %s\n", strerror(errno)); + return; + } id = netlink_wireguard_id_get(&nlmsg, sock); if (id == -1)