During the execution of a C compiled program in a terminal, isatty(fileno(stderr))
as well as isatty(0)
returns 0 in my code when I use the mpirun
or mpiexec
commands.
Why ? and How do I know if stdout is a terminal or redirected while using MPI ?
I'm actually printing colored stuff, but this makes the output parsing harder.
Thanks in advance.