make pipe to be blocking and keep reading until getting gdb prompt