* cygheap.h (struct cwdstuff): Add "sync" member and accompanying
"keep_in_sync" methods. * external.cc (cygwin_internal): Call above keep_in_sync method when CW_SYNC_WINENV is requested. * path.cc (cwdstuff::init): Don't change to windows_system_directory if keep_in_sync is requested. (cwdstuff::keep_in_sync): New method. (cwdstuff::set): Take sync flag into account.
This commit is contained in:
@@ -346,6 +346,7 @@ cygwin_internal (cygwin_getinfo_types t, ...)
|
||||
try_to_debug ();
|
||||
break;
|
||||
case CW_SYNC_WINENV:
|
||||
cygheap->cwd.keep_in_sync (true);
|
||||
sync_winenv ();
|
||||
return 0;
|
||||
case CW_CYGTLS_PADSIZE:
|
||||
|
Reference in New Issue
Block a user