From 40abed787cde259218671db87d66b608535e0abd Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 15 Oct 2012 23:58:16 +0200 Subject: [PATCH] fixed wrong status indication of sd log command if startup fails --- apps/sdlog/sdlog.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/sdlog/sdlog.c b/apps/sdlog/sdlog.c index 22b8d82ee6..229e1bfef6 100644 --- a/apps/sdlog/sdlog.c +++ b/apps/sdlog/sdlog.c @@ -131,7 +131,6 @@ int sdlog_main(int argc, char *argv[]) 4096, sdlog_thread_main, (argv) ? (const char **)&argv[2] : (const char **)NULL); - thread_running = true; exit(0); } @@ -202,7 +201,7 @@ int sdlog_thread_main(int argc, char *argv[]) { char folder_path[64]; if (create_logfolder(folder_path)) - errx(1, "unable to create logging folder, exiting"); + errx(1, "unable to create logging folder, exiting."); /* create sensorfile */ int sensorfile = -1;