Merge "Most accept/accept4 calls in system/core don't actually want the remote address."
am: 299d64144b Change-Id: I3fb9678dfed08f0b1d6e90e547ecae6cdcabc9a1
This commit is contained in:
commit
e1143c597b
6
lmkd.c
6
lmkd.c
|
|
@ -397,9 +397,6 @@ static void ctrl_data_handler(uint32_t events) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ctrl_connect_handler(uint32_t events __unused) {
|
static void ctrl_connect_handler(uint32_t events __unused) {
|
||||||
struct sockaddr_storage ss;
|
|
||||||
struct sockaddr *addrp = (struct sockaddr *)&ss;
|
|
||||||
socklen_t alen;
|
|
||||||
struct epoll_event epev;
|
struct epoll_event epev;
|
||||||
|
|
||||||
if (ctrl_dfd >= 0) {
|
if (ctrl_dfd >= 0) {
|
||||||
|
|
@ -407,8 +404,7 @@ static void ctrl_connect_handler(uint32_t events __unused) {
|
||||||
ctrl_dfd_reopened = 1;
|
ctrl_dfd_reopened = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
alen = sizeof(ss);
|
ctrl_dfd = accept(ctrl_lfd, NULL, NULL);
|
||||||
ctrl_dfd = accept(ctrl_lfd, addrp, &alen);
|
|
||||||
|
|
||||||
if (ctrl_dfd < 0) {
|
if (ctrl_dfd < 0) {
|
||||||
ALOGE("lmkd control socket accept failed; errno=%d", errno);
|
ALOGE("lmkd control socket accept failed; errno=%d", errno);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue