* fork.cc (frok::parent): Improve error message.
This commit is contained in:
parent
2a904ebacb
commit
22d78f100f
|
@ -1,3 +1,7 @@
|
||||||
|
2010-06-28 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
|
* fork.cc (frok::parent): Improve error message.
|
||||||
|
|
||||||
2010-06-22 Corinna Vinschen <corinna@vinschen.de>
|
2010-06-22 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* flock.cc (allow_others_to_sync): Use small stack buffer rather
|
* flock.cc (allow_others_to_sync): Use small stack buffer rather
|
||||||
|
|
|
@ -286,7 +286,7 @@ frok::parent (volatile char * volatile stack_here)
|
||||||
this_errno = 0;
|
this_errno = 0;
|
||||||
bool fix_impersonation = false;
|
bool fix_impersonation = false;
|
||||||
pinfo child;
|
pinfo child;
|
||||||
static char errbuf[256];
|
static char errbuf[NT_MAX_PATH + 256];
|
||||||
|
|
||||||
int c_flags = GetPriorityClass (GetCurrentProcess ());
|
int c_flags = GetPriorityClass (GetCurrentProcess ());
|
||||||
debug_printf ("priority class %d", c_flags);
|
debug_printf ("priority class %d", c_flags);
|
||||||
|
@ -367,7 +367,8 @@ frok::parent (volatile char * volatile stack_here)
|
||||||
if (!rc)
|
if (!rc)
|
||||||
{
|
{
|
||||||
this_errno = geterrno_from_win_error ();
|
this_errno = geterrno_from_win_error ();
|
||||||
error = "CreateProcessW failed";
|
__small_sprintf (errbuf, "CreatProcessW failed for '%W'", myself->progname);
|
||||||
|
error = errbuf;
|
||||||
memset (&pi, 0, sizeof (pi));
|
memset (&pi, 0, sizeof (pi));
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue