-
-
Save LoonyPandora/782671 to your computer and use it in GitHub Desktop.
Revisions
-
zaius revised this gist
Jan 16, 2011 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,6 @@ touch /tmp/stderr gdb -p $! # In GDB p dup2(open("/tmp/stdout", 1), 1) p dup2(open("/tmp/stderr", 1), 2) detach -
zaius revised this gist
Jan 16, 2011 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,12 @@ ctrl-z bg touch /tmp/stdout touch /tmp/stderr gdb -p $! # In GDB p dup2(open("/tmp/stdout", 1), 1) p dup2(open("/tmp/stderr", 1), 2) detach -
zaius created this gist
Jan 16, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ ctrl-z bg gdb -p $! # In GDB touch /tmp/stdout touch /tmp/stderr gdb -p $! p dup2(open("/tmp/stdout", 1), 1) p dup2(open("/tmp/stderr", 1), 2) detach quit # Back in shell disown logout