am 080ed92e: Merge "Close inherited PIPE before doing work" into gingerbread

* commit '080ed92e77fc7c24ca3bac1a1dc06057390bfdb8':
  Close inherited PIPE before doing work