* exceptions.cc (dump_exception): Use %W instead of %s for printing

progname.
	* fork.cc (frok::parent): Fix typos in debug output.
	* spawn.cc (spawn_guts): Copy wide Win32 filename into _pinfo::progname,
	rather than native NT name.
This commit is contained in:
Corinna Vinschen
2010-06-29 10:28:40 +00:00
parent a6076c2cdc
commit e7daa3ed75
4 changed files with 14 additions and 6 deletions

View File

@ -692,8 +692,8 @@ loop:
myself->dwProcessId = pi.dwProcessId;
strace.execing = 1;
myself.hProcess = hExeced = pi.hProcess;
wcscpy (myself->progname, real_path.get_nt_native_path ()->Buffer); // FIXME: race?
sigproc_printf ("new process name %S", myself->progname);
real_path.get_wide_win32_path (myself->progname);
sigproc_printf ("new process name %W", myself->progname);
/* If wr_proc_pipe doesn't exist then this process was not started by a cygwin
process. So, we need to wait around until the process we've just "execed"
dies. Use our own wait facility to wait for our own pid to exit (there
@ -733,7 +733,7 @@ loop:
child->dwProcessId = pi.dwProcessId;
child.hProcess = pi.hProcess;
wcscpy (child->progname, real_path.get_nt_native_path ()->Buffer);
real_path.get_wide_win32_path (child->progname);
/* FIXME: This introduces an unreferenced, open handle into the child.
The purpose is to keep the pid shared memory open so that all of
the fields filled out by child.remember do not disappear and so there