diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-06-29 10:28:40 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-06-29 10:28:40 +0000 |
commit | e7daa3ed754dfaa406099aa8be9473eda959df60 (patch) | |
tree | eed2bcde8b87eb3bd0cf1ed7b36e8a7baf912cd8 /winsup/cygwin/spawn.cc | |
parent | a6076c2cdcf13af80a860682636894241bb4b0e2 (diff) | |
download | cygnal-e7daa3ed754dfaa406099aa8be9473eda959df60.tar.gz cygnal-e7daa3ed754dfaa406099aa8be9473eda959df60.tar.bz2 cygnal-e7daa3ed754dfaa406099aa8be9473eda959df60.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 7f6738976..9d11c8c22 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -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 |