diff options
author | Drew Richardson <drew.richardson@arm.com> | 2014-10-22 12:00:00 -0700 |
---|---|---|
committer | Drew Richardson <drew.richardson@arm.com> | 2014-12-19 15:59:12 -0800 |
commit | ecc3d86ea62f7be7defa303d1d14b8506ec63e75 (patch) | |
tree | 4a0c3fb31869e2eca869f3eb2d35c6d1391ecd68 /daemon/UEvent.cpp | |
parent | 6a98fbff8b9f8a23045efdea51784b479cefac7f (diff) |
gator: Version 5.205.20
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Diffstat (limited to 'daemon/UEvent.cpp')
-rw-r--r-- | daemon/UEvent.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/UEvent.cpp b/daemon/UEvent.cpp index 54d4575..f94a995 100644 --- a/daemon/UEvent.cpp +++ b/daemon/UEvent.cpp @@ -15,6 +15,7 @@ #include <linux/netlink.h> #include "Logging.h" +#include "OlySocket.h" static const char EMPTY[] = ""; static const char ACTION[] = "ACTION="; @@ -31,7 +32,7 @@ UEvent::~UEvent() { } bool UEvent::init() { - mFd = socket(PF_NETLINK, SOCK_RAW, NETLINK_KOBJECT_UEVENT); + mFd = socket_cloexec(PF_NETLINK, SOCK_RAW, NETLINK_KOBJECT_UEVENT); if (mFd < 0) { logg->logMessage("%s(%s:%i): socket failed", __FUNCTION__, __FILE__, __LINE__); return false; |