close read end of pipe to avoid leaking descriptors MINOR

This commit is contained in:
Aaron
2009-04-10 14:46:02 -04:00
parent ce755ac54e
commit 285103740e

View File

@@ -438,6 +438,7 @@ public:
if ( ret == 0 ) {
if ( *last )
writeMongoProgramOutputLine( port_, last );
close( pipe_ );
break;
}
if ( last != buf ) {