[Python-checkins] python/dist/src/PC/bdist_wininst install.c,
1.1.14.7, 1.1.14.8
theller at users.sourceforge.net
theller at users.sourceforge.net
Wed Dec 22 16:46:04 CET 2004
Update of /cvsroot/python/python/dist/src/PC/bdist_wininst
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26577
Modified Files:
Tag: release23-maint
install.c
Log Message:
Close stdout and stderr, which are redirected into a temp file, before
trying to remove this file - the file was never removed before.
Completes the fix for [ 1067732 ] wininst --install-script leaves
residual files on C:\\
Index: install.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/bdist_wininst/install.c,v
retrieving revision 1.1.14.7
retrieving revision 1.1.14.8
diff -u -d -r1.1.14.7 -r1.1.14.8
--- install.c 22 Dec 2004 15:35:20 -0000 1.1.14.7
+++ install.c 22 Dec 2004 15:46:01 -0000 1.1.14.8
@@ -1734,7 +1734,9 @@
fprintf(stderr, "*** Could not load Python ***");
}
fflush(stderr);
+ fclose(stderr);
fflush(stdout);
+ fclose(stdout);
fp = fopen(tempname, "rb");
n = fread(buffer, 1, sizeof(buffer), fp);
@@ -2082,7 +2084,9 @@
}
fflush(stderr);
+ fclose(stderr);
fflush(stdout);
+ fclose(stdout);
fp = fopen(tempname, "rb");
n = fread(buffer, 1, sizeof(buffer), fp);
More information about the Python-checkins
mailing list