This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
While this logic works fine in the linux, the temporary directory does not get deleted in cygwin.
/* ldmain.c */
main()
{
my_function();
delete tmp_directory;//I have to delete the tmp_directory only here }
/* myfile.c */ my_function() { create tmp directory tmp_directory; . create intermediate files in the above directory; . my_process_function(intermediate files);//processes the intermediate files . return; }
After debugging using gdb, I found that in cygwin, the intermediate> the end of the main() function in linker. Due to this, the temporary
files still had some handlers open for it despite of reaching till
files get deleted only after exiting from the main. Hence as the> temporary drectory is not empty till then, it cannot get deleted.
Cheers Nick
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |