Need to reopen the pipes actually

Wed, 03 Apr 2019 09:39:15 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 03 Apr 2019 09:39:15 -0500
changeset 753
fadb5356ae65
parent 752
bdbfa576e84f
child 754
0b6dae901ee5

Need to reopen the pipes actually

bin/git-ctags file | annotate | diff | comparison | revisions
--- a/bin/git-ctags
+++ b/bin/git-ctags
@@ -26,7 +26,7 @@ opts   = File.exists?(conf) ? "--options
 
 if running_hook
   fork and exit
-  [STDIN, STDOUT, STDERR].each(&:close)
+  [STDIN, STDOUT, STDERR].each {|p| p.reopen '/dev/null'}
   sleep 5
 end
 

mercurial