by anon8r398rt · 12y ago · 0 comments
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...