From cefa2dd3fe453638c45320787fa157e034b90dd9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 25 Jun 2008 17:59:16 +0000 Subject: * stdlib/tst-setcontext.c: Set back_in_main before exit if getcontext returns ENOSYS. --- stdlib/tst-setcontext.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'stdlib') diff --git a/stdlib/tst-setcontext.c b/stdlib/tst-setcontext.c index beec23a686..51296f74ab 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); -- cgit v1.2.3-70-g09d2