1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

* stdlib/tst-setcontext.c: Set back_in_main before exit if

getcontext returns ENOSYS.
This commit is contained in:
Ulrich Drepper
2008-06-25 17:59:16 +00:00
parent 99ae13c825
commit cefa2dd3fe
2 changed files with 9 additions and 1 deletions

View File

@ -150,7 +150,10 @@ main (void)
if (getcontext (&ctx[1]) != 0)
{
if (errno == ENOSYS)
exit (0);
{
back_in_main = 1;
exit (0);
}
printf ("%s: getcontext: %m\n", __FUNCTION__);
exit (1);