reset SIGPIPE before returning
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 6 Nov 2007 00:33:28 +0000 (19:33 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 6 Nov 2007 00:33:28 +0000 (19:33 -0500)
IkiWiki/Plugin/htmltidy.pm

index cd5dc83acc6b1da5b990f18105070f1fba132487..19271b1366a71d848b69f36b2edc27e23c87b7da 100644 (file)
@@ -36,8 +36,8 @@ sub sanitize (@) { #{{{
        close IN;
        waitpid $pid, 0;
 
        close IN;
        waitpid $pid, 0;
 
-       return $params{content} if $sigpipe;
        $SIG{PIPE}="DEFAULT";
        $SIG{PIPE}="DEFAULT";
+       return $params{content} if $sigpipe;
 
        return $ret;
 } # }}}
 
        return $ret;
 } # }}}