diff --git a/historic/jam/src/execnt.c b/historic/jam/src/execnt.c index 5c626fe5d..a5ebf6531 100644 --- a/historic/jam/src/execnt.c +++ b/historic/jam/src/execnt.c @@ -746,6 +746,10 @@ execwait() exit( EXITBAD ); } + /* Clear the temp file */ + if ( cmdtab[i].tempfile ) + unlink( cmdtab[ i ].tempfile ); + /* Drive the completion */ if( !--cmdsrunning ) diff --git a/jam_src/execnt.c b/jam_src/execnt.c index 5c626fe5d..a5ebf6531 100644 --- a/jam_src/execnt.c +++ b/jam_src/execnt.c @@ -746,6 +746,10 @@ execwait() exit( EXITBAD ); } + /* Clear the temp file */ + if ( cmdtab[i].tempfile ) + unlink( cmdtab[ i ].tempfile ); + /* Drive the completion */ if( !--cmdsrunning )