diff options
author | Christopher Faylor <me@cgf.cx> | 2010-06-28 18:32:12 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-06-28 18:32:12 +0000 |
commit | 22d78f100fd42127cf1cc90ed68fa9b49971c9b3 (patch) | |
tree | 77670a04d3a4610f14a5eaf57302ed281519746f /winsup/cygwin/fork.cc | |
parent | 2a904ebacbaecd03399e3294bd6ae0c90d7c5904 (diff) | |
download | cygnal-22d78f100fd42127cf1cc90ed68fa9b49971c9b3.tar.gz cygnal-22d78f100fd42127cf1cc90ed68fa9b49971c9b3.tar.bz2 cygnal-22d78f100fd42127cf1cc90ed68fa9b49971c9b3.zip |
* fork.cc (frok::parent): Improve error message.
Diffstat (limited to 'winsup/cygwin/fork.cc')
-rw-r--r-- | winsup/cygwin/fork.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/fork.cc b/winsup/cygwin/fork.cc index 97440ae0f..75ee87688 100644 --- a/winsup/cygwin/fork.cc +++ b/winsup/cygwin/fork.cc @@ -286,7 +286,7 @@ frok::parent (volatile char * volatile stack_here) this_errno = 0; bool fix_impersonation = false; pinfo child; - static char errbuf[256]; + static char errbuf[NT_MAX_PATH + 256]; int c_flags = GetPriorityClass (GetCurrentProcess ()); debug_printf ("priority class %d", c_flags); @@ -367,7 +367,8 @@ frok::parent (volatile char * volatile stack_here) if (!rc) { 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)); goto cleanup; } |