From b90f6dc15738b68a73fe011d6161599a4dbd5c52 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 18 Apr 2016 17:06:12 +0200 Subject: [PATCH] Fix text print to logfile --- src/modules/sdlog2/sdlog2.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/modules/sdlog2/sdlog2.c b/src/modules/sdlog2/sdlog2.c index f9415451f7..1593eb5ffc 100644 --- a/src/modules/sdlog2/sdlog2.c +++ b/src/modules/sdlog2/sdlog2.c @@ -1329,16 +1329,6 @@ int sdlog2_thread_main(int argc, char *argv[]) subs.sat_info_sub = -1; -#ifdef __PX4_NUTTX - /* close non-needed fd's. We cannot do this for posix since the file - descriptors will also be closed for the parent process - */ - - /* close stdin */ - close(0); - /* close stdout */ - close(1); -#endif /* initialize thread synchronization */ pthread_mutex_init(&logbuffer_mutex, NULL); pthread_cond_init(&logbuffer_cond, NULL);