Fix text print to logfile

This commit is contained in:
Lorenz Meier
2016-04-18 17:06:12 +02:00
parent cc0fbdd549
commit b90f6dc157
-10
View File
@@ -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);