My favourite one: attach to the process in question using gdb, and run: p dup2(open("/dev/null", 0), 1) p dup2(open("/dev/null", 0), 2) detach quit From: https://stackoverflow.com/questions/593724/redirect-stderr-s...
My favourite one: attach to the process in question using gdb, and run: p dup2(open("/dev/null", 0), 1) p dup2(open("/dev/null", 0), 2) detach quit From: https://stackoverflow.com/questions/593724/redirect-stderr-s...