5 karma · joined Nov 28, 2014 (12y ago) · 1 submissions
comment 12y ago · link · parent
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