* fork.cc (frok::parent): Improve error message.

This commit is contained in:
Christopher Faylor 2006-03-14 21:01:35 +00:00
parent e5aa298da5
commit 67f85ee7b2
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-03-14 Christopher Faylor <cgf@timesys.com>
* fork.cc (frok::parent): Improve error message.
2006-03-14 Christopher Faylor <cgf@timesys.com> 2006-03-14 Christopher Faylor <cgf@timesys.com>
* dcrt0.cc (main_environ): Initialize to &__cygwin_environment. * dcrt0.cc (main_environ): Initialize to &__cygwin_environment.

View File

@ -333,7 +333,13 @@ frok::parent (void *stack_here)
continue; continue;
} }
this_errno = EAGAIN; this_errno = EAGAIN;
error = "died waiting for longjmp before initialization"; /* Not thread safe, but do we care? */
static char buf[sizeof("died waiting for longjmp before "
"initialization, retry 4294967295, "
"exit code 0xfffffffff")];
__small_sprintf (buf, "died waiting for longjmp before initialization, "
"retry %d, exit code %p", ch.retry, exit_code);
error = buf;
goto cleanup; goto cleanup;
} }
break; break;