bin/git-ctags

changeset 753
fadb5356ae65
parent 752
bdbfa576e84f
child 754
0b6dae901ee5
--- 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