From 8613dc027826b0e6e7a368a600ecf3c9899704d3 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Thu, 11 Sep 2014 09:28:20 -0500 Subject: Fix handling of MTP fork/child process Change-Id: Iacd8a38d21e9c8b0dfafefbeb646f46cd3ba02a1 --- mtp/twrpMtp.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mtp') diff --git a/mtp/twrpMtp.cpp b/mtp/twrpMtp.cpp index e7c3f2cda..9a7df5be1 100755 --- a/mtp/twrpMtp.cpp +++ b/mtp/twrpMtp.cpp @@ -99,6 +99,8 @@ pid_t twrpMtp::forkserver(void) { if (pid == 0) { // Child process start(); + MTPD("MTP child process exited.\n"); + _exit(0); } else { return pid; } -- cgit v1.2.3