From ce5b47e87d134ef9a340158abf99abc6f7f3638d Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 19 Jul 2004 10:30:29 +0000 Subject: [PATCH] Remove temporary files on Windows. Patch from Dean Ashton. [SVN r23777] --- historic/jam/src/execnt.c | 4 ++++ jam_src/execnt.c | 4 ++++ 2 files changed, 8 insertions(+) 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 )