diff options
Diffstat (limited to 'server/TetherController.cpp')
| -rw-r--r-- | server/TetherController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/TetherController.cpp b/server/TetherController.cpp index 6617c6a5..7bf4a925 100644 --- a/server/TetherController.cpp +++ b/server/TetherController.cpp @@ -46,7 +46,7 @@ const char IPV6_FORWARDING_PROC_FILE[] = "/proc/sys/net/ipv6/conf/all/forwarding const char SEPARATOR[] = "|"; bool writeToFile(const char* filename, const char* value) { - int fd = open(filename, O_WRONLY); + int fd = open(filename, O_WRONLY | O_CLOEXEC); if (fd < 0) { ALOGE("Failed to open %s: %s", filename, strerror(errno)); return false; |
