am 93951cfa
: Merge "Fix a couple more cases of missing CLOEXEC."
* commit '93951cfa96c3c7504a78f94e7ec408936e5db9bf': Fix a couple more cases of missing CLOEXEC.
This commit is contained in:
@@ -471,8 +471,8 @@ static const prop_info *find_property(prop_bt *const trie, const char *name,
|
||||
|
||||
static int send_prop_msg(const prop_msg *msg)
|
||||
{
|
||||
const int fd = socket(AF_LOCAL, SOCK_STREAM, 0);
|
||||
if (fd < 0) {
|
||||
const int fd = socket(AF_LOCAL, SOCK_STREAM | SOCK_CLOEXEC, 0);
|
||||
if (fd == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user