* exceptions.cc: Make windows_system_directory non-static.
* pinfo.cc (pinfo::exit): Change innocuous cd'ed location to one that is more likely to exist.
This commit is contained in:
parent
7d880770d3
commit
bec2abd71e
@ -1,3 +1,9 @@
|
|||||||
|
2005-02-07 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* exceptions.cc: Make windows_system_directory non-static.
|
||||||
|
* pinfo.cc (pinfo::exit): Change innocuous cd'ed location to one that
|
||||||
|
is more likely to exist.
|
||||||
|
|
||||||
2005-02-06 Corinna Vinschen <corinna@vinschen.de>
|
2005-02-06 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* path.cc (path_conv::check): Leave symlink expansion loop in case
|
* path.cc (path_conv::check): Leave symlink expansion loop in case
|
||||||
|
@ -40,7 +40,7 @@ extern DWORD dwExeced;
|
|||||||
|
|
||||||
static BOOL WINAPI ctrl_c_handler (DWORD);
|
static BOOL WINAPI ctrl_c_handler (DWORD);
|
||||||
static void signal_exit (int) __attribute__ ((noreturn));
|
static void signal_exit (int) __attribute__ ((noreturn));
|
||||||
static char windows_system_directory[1024];
|
char windows_system_directory[1024];
|
||||||
static size_t windows_system_directory_length;
|
static size_t windows_system_directory_length;
|
||||||
|
|
||||||
/* This is set to indicate that we have already exited. */
|
/* This is set to indicate that we have already exited. */
|
||||||
|
@ -144,11 +144,11 @@ pinfo::exit (DWORD n)
|
|||||||
|
|
||||||
if (n != EXITCODE_NOSET)
|
if (n != EXITCODE_NOSET)
|
||||||
{
|
{
|
||||||
SetCurrentDirectory ("c:\\"); /* Move to an innocuous location to
|
extern char windows_system_directory[];
|
||||||
avoid races with other processes
|
/* Move to an innocuous location to avoid a race with other processes
|
||||||
that may want to manipulate the
|
that may want to manipulate the current directory before this
|
||||||
current directory before this process
|
process has completely exited. */
|
||||||
has completely exited. */
|
(void) SetCurrentDirectory (windows_system_directory);
|
||||||
self->alert_parent (0); /* Shave a little time by telling our
|
self->alert_parent (0); /* Shave a little time by telling our
|
||||||
parent that we have now exited. */
|
parent that we have now exited. */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user