summaryrefslogtreecommitdiffstats
path: root/mtp/twrpMtp.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-09-11 16:28:20 +0200
committerEthan Yonker <dees_troy@teamw.in>2014-09-11 16:28:20 +0200
commit8613dc027826b0e6e7a368a600ecf3c9899704d3 (patch)
tree1e866dfd28043029b983d7d97f64a683b52f00ae /mtp/twrpMtp.cpp
parentMTP: Build flag for setting custom MTP device/path (diff)
downloadandroid_bootable_recovery-8613dc027826b0e6e7a368a600ecf3c9899704d3.tar
android_bootable_recovery-8613dc027826b0e6e7a368a600ecf3c9899704d3.tar.gz
android_bootable_recovery-8613dc027826b0e6e7a368a600ecf3c9899704d3.tar.bz2
android_bootable_recovery-8613dc027826b0e6e7a368a600ecf3c9899704d3.tar.lz
android_bootable_recovery-8613dc027826b0e6e7a368a600ecf3c9899704d3.tar.xz
android_bootable_recovery-8613dc027826b0e6e7a368a600ecf3c9899704d3.tar.zst
android_bootable_recovery-8613dc027826b0e6e7a368a600ecf3c9899704d3.zip
Diffstat (limited to '')
-rwxr-xr-xmtp/twrpMtp.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}