projects
/
framework
/
connectivity
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
service: Check that the supplied nameserver is in numeric format
[framework/connectivity/connman.git]
/
src
/
stats.c
diff --git
a/src/stats.c
b/src/stats.c
index
df28eb4
..
828c1ef
100644
(file)
--- a/
src/stats.c
+++ b/
src/stats.c
@@
-335,7
+335,7
@@
static int stats_open(struct stats_file *file,
file->name = g_strdup(name);
- file->fd = TFR(open(file->name, O_RDWR | O_CREAT, 0644));
+ file->fd = TFR(open(file->name, O_RDWR | O_CREAT
| O_CLOEXEC
, 0644));
if (file->fd < 0) {
connman_error("open error %s for %s",
strerror(errno), file->name);