Merge "Switch debuggerd over to unique_fd."

This commit is contained in:
Elliott Hughes 2016-03-23 18:36:54 +00:00 committed by Gerrit Code Review
commit 6c03e3111d
1 changed files with 2 additions and 2 deletions

View File

@ -36,10 +36,10 @@
#include <log/logger.h>
#include <android-base/unique_fd.h>
#include <cutils/debugger.h>
#include <cutils/properties.h>
#include <cutils/sockets.h>
#include <nativehelper/ScopedFd.h>
#include <linux/input.h>
@ -632,7 +632,7 @@ static void monitor_worker_process(int child_pid, const debugger_request_t& requ
static void handle_request(int fd) {
ALOGV("handle_request(%d)\n", fd);
ScopedFd closer(fd);
android::base::unique_fd closer(fd);
debugger_request_t request;
memset(&request, 0, sizeof(request));
int status = read_request(fd, &request);