On 08/25/2015 07:27 PM, William Hermans wrote: > /Then you're not getting to the printf...../ > > /Ok, one possibility is that the system calls are taking lots of time./ > /Another possibility is that the wait time is giving you a problem./ > > /If you understand the mechanism of a semaphore, then you can implement/ > /your own in code./ > > /Not sure what's going on./ > > > Yeah, thats why I put the printf() there to begin with. A quick way to test > where my code was "hanging". However, I did do some further testing, and > found the stalling was actually std out flushing once every 5-10 seconds or > so ( printf() no "\n" ) at least one the IPC server side.
When I use stdio like that, I disable stdio buffering with setbuf(stdout, NULL); Optionally, fprintf(stderr, ...); is unbuffered as well. Regards, Peter Hurley -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.