summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoon.c.baek <joon.c.baek@samsung.com>2018-07-09 10:06:36 +0900
committerjoon.c.baek <joon.c.baek@samsung.com>2018-07-09 10:29:32 +0900
commit09258ab30e1ac5cb7adc62028147dea9219c76c5 (patch)
tree9d9c578ca6bf3199260ae805db2413a038c02c27
parent0a2883bf7940b3ee138551434117d3ea63cbfb2a (diff)
downloadttrace-09258ab30e1ac5cb7adc62028147dea9219c76c5.tar.gz
ttrace-09258ab30e1ac5cb7adc62028147dea9219c76c5.tar.bz2
ttrace-09258ab30e1ac5cb7adc62028147dea9219c76c5.zip
Resolve the service failed of ttrace-marker.servicesubmit/tizen_4.0/20180709.045001accepted/tizen/4.0/unified/20180709.210316
When ttrace-marker.service is executed twice, Second execution makes service failed because of already generated tag file what generated correctly. So, In this case(founding existed tag file) initEnabledTagFile() will return true. Change-Id: Ie4dbee288b1b8daa1231513a8be62bc6884e438b Signed-off-by: joon.c.baek <joon.c.baek@samsung.com>
-rwxr-xr-xsrc/atrace/atrace.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atrace/atrace.cpp b/src/atrace/atrace.cpp
index c509354..b3fdb77 100755
--- a/src/atrace/atrace.cpp
+++ b/src/atrace/atrace.cpp
@@ -399,7 +399,7 @@ static bool initEnabledTagFile()
if(fileExists(ENABLED_TAG_FILE)) {
fprintf(stderr, "[Info] T-trace has been already initailized\n");
- return false; //atrace has been already initailized.
+ return true; //atrace has been already initailized.
}
fd = open("/tmp/tmp_tag", O_CREAT | O_RDWR | O_CLOEXEC, 0600);
@@ -963,7 +963,7 @@ int main(int argc, char **argv)
default:
fprintf(stderr, "\n");
showHelp(argv[0]);
- exit(-1);
+ exit(0);
break;
}
}