summaryrefslogtreecommitdiffstats
path: root/winsup
diff options
context:
space:
mode:
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fork.cc5
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 161c2003e..1b6f1247b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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>
* flock.cc (allow_others_to_sync): Use small stack buffer rather
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;
}