commit | bae5b1dbd8dfe7318e208be917f4c9b9e8abced6 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Wed Jul 02 22:39:14 2014 -0700 |
committer | Nick Kralevich <nnk@google.com> | Wed Jul 02 22:39:14 2014 -0700 |
tree | 802266e9ef04af079867b541b25a30cfe2d727e8 | |
parent | 1f262b35fef5108e3bd3fbea4b6aa1ce635767f9 [diff] |
libc_logging: Set SOCK_CLOEXEC on socket Socket file descriptors remain open across exec unless SOCK_CLOEXEC is set. Enable this option, to avoid leaking file descriptors. In practice, this isn't a big deal, since the socket only remains open for a very short period to write a message. However, this socket might leak for for multithreaded programs if an exec occurs between the open and close. Change-Id: Ica2e71fe28657c32d56de1431c8f7f1f5c7b7c58