aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--stdlib/tst-setcontext.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c0dcf2d..cb8da18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-06-17 Joseph Myers <joseph@codesourcery.com>
+
+ * stdlib/tst-setcontext.c: Set back_in_main before exit if
+ getcontext returns ENOSYS.
+
2008-06-18 Ulrich Drepper <drepper@redhat.com>
* nscd/connections.c (main_loop_poll): Fix test for read error.
diff --git a/stdlib/tst-setcontext.c b/stdlib/tst-setcontext.c
index beec23a..51296f7 100644
--- a/stdlib/tst-setcontext.c
+++ b/stdlib/tst-setcontext.c
@@ -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);