logcat: fix logcatd / logpersist
Removing the rest of liblogcat broke logcatd since LogcatPanic() now
actually calls exit(), whereas logcatd relied on it to return
normally.
We can achieve the expected behavior with a small shell script, so
this change does that as well.
Test: logcatd / logpersist work
Change-Id: Icde36a4811a0db987a801978485e1af1dfc3d38c
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp
index dc84fd2..70ccb80 100644
--- a/logcat/logcat.cpp
+++ b/logcat/logcat.cpp
@@ -14,8 +14,6 @@
* limitations under the License.
*/
-#include "logcat.h"
-
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
@@ -1177,7 +1175,7 @@
return EXIT_SUCCESS;
}
-int RunLogcat(int argc, char** argv) {
+int main(int argc, char** argv) {
Logcat logcat;
return logcat.Run(argc, argv);
}