2011/9/25 Nadeem Abdul Hamid <[email protected]>: > [...] > This hangs even with the printf("Hello World\n") outputting a newline. > But if I add fflush(stdout); in the C program after the printf it > works. > [...]
Hello, the default buffering behaviour of the C stdio functions usually depends on whether output goes to a terminal or somewhere else. Terminal output is usually line buffered while other output is usually block buffered, so the observed behaviour is not really surprising. Ciao, Thomas -- When C++ is your hammer, every problem looks like your thumb. _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

