I'm merging this, but, it strikes me the initial intent of this was a bit neat -- instead of dup2ing over stdout and restoring it with a dup'd original stdout, the htmlfd just had to be modified. I may end up reverting this change later, but for now I'll merge it.