making valgrind able to read user input when c++ needs it
I am trying to run my c++ program with valgrind, however I have some points in the program which require user input from stdin, but when i run with valgrind, it wont let the user input anything for the program, is there a way around this? Been searching all around but have not found the answer. I haven't tried it, but I found this in the man pages: --input-fd=<number> [default: 0, stdin] Specify the file descriptor to use for reading input from the user. This is used whenever valgrind needs to prompt the user for a decision. What happens if you specify a different fd (say, 3) for valgrind to