Better HN
topnewbestaskshowjobs
Log inSign up

anon8r398rt

5 karma · joined Nov 28, 2014 (12y ago) · 1 submissions

Submissions

comment 12y ago · link · parent

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...