Skip to content

Commit 9c1c49f

Browse files
authored
Merge pull request #39 from afresh1/ToMan-Waitpid
waitpid for the man process to exit
2 parents 429a9ed + e9f280b commit 9c1c49f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Pod/Perldoc/ToMan.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,9 @@ sub _filter_through_nroff {
351351
length $done
352352
);
353353

354+
# wait for it to exit
355+
waitpid( $pid, 0 );
356+
354357
if( $? ) {
355358
$self->warn( "Error from pipe to $render!\n" );
356359
$self->debug( 'Error: ' . do { local $/; <$err> } );

0 commit comments

Comments
 (0)