commit | 5529de0fa3f41edb72737b00be13ef77b33d0a2b | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Thu Jul 03 15:56:32 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Thu Jul 03 01:32:01 2014 +0000 |
tree | 04485327253ef10ea99e2c31bda23ec21caaa26d | |
parent | 09117c70f1cc0de77c62d6f7f5bee04e3fc7ef83 [diff] | |
parent | 118d1b393067fbc4fbb26af6815a7a4f131f0148 [diff] |
Merge "logd_write: set SOCK_CLOEXEC on socket"
diff --git a/liblog/logd_write.c b/liblog/logd_write.c index 1da55ab..3171c78 100644 --- a/liblog/logd_write.c +++ b/liblog/logd_write.c
@@ -107,7 +107,7 @@ close(i); } - i = socket(PF_UNIX, SOCK_DGRAM, 0); + i = socket(PF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC, 0); if (i < 0) { ret = -errno; write_to_log = __write_to_log_null;