summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-06-25 17:59:16 +0000
committerUlrich Drepper <drepper@redhat.com>2008-06-25 17:59:16 +0000
commitcefa2dd3fe453638c45320787fa157e034b90dd9 (patch)
treed2486d9ba39a168c318dc29cda181c6d0c2b106c /stdlib
parent99ae13c8257fe28380294cd66ab4f33a37e3aeb2 (diff)
downloadglibc-cefa2dd3fe453638c45320787fa157e034b90dd9.tar.gz
glibc-cefa2dd3fe453638c45320787fa157e034b90dd9.tar.xz
glibc-cefa2dd3fe453638c45320787fa157e034b90dd9.zip
* stdlib/tst-setcontext.c: Set back_in_main before exit if
	getcontext returns ENOSYS.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-setcontext.c5
1 files changed, 4 insertions, 1 deletions
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);