Skip to content
Snippets Groups Projects
Commit 79457a04 authored by patacongo's avatar patacongo
Browse files

Don't call fflush if streams are disabled

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@272 42af7a65-404d-4744-a932-0658087f49c3
parent cfdfa7b3
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,11 @@ static int waiter_main(int argc, char *argv[])
/* Take the semaphore */
printf("waiter_main: Waiting on semaphore\n" );
#if CONFIG_NFILE_STREAMS > 0
fflush(stdout);
#endif
status = sem_wait(&sem);
if (status != 0)
{
......@@ -176,7 +180,11 @@ static int waiter_main(int argc, char *argv[])
status = sigaction(WAKEUP_SIGNAL, &act, &oact);
printf("waiter_main: done\n" );
#if CONFIG_NFILE_STREAMS > 0
fflush(stdout);
#endif
threadexited = TRUE;
return 0;
}
......@@ -222,7 +230,9 @@ void sighand_test(void)
/* Wait a bit */
#if CONFIG_NFILE_STREAMS > 0
fflush(stdout);
#endif
sleep(2);
/* Then signal the waiter thread. */
......@@ -244,7 +254,9 @@ void sighand_test(void)
/* Wait a bit */
#if CONFIG_NFILE_STREAMS > 0
fflush(stdout);
#endif
sleep(2);
/* Then check the result */
......@@ -260,5 +272,7 @@ void sighand_test(void)
}
printf("sighand_test: done\n" );
#if CONFIG_NFILE_STREAMS > 0
fflush(stdout);
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment