[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r6382 - in /trunk/libc: ChangeLog.eglibc stdlib/tst-setcontext.c



Author: joseph
Date: Tue Jun 17 11:53:10 2008
New Revision: 6382

Log:
	* stdlib/tst-setcontext.c: Set back_in_main before exit if
	getcontext returns ENOSYS.

Modified:
    trunk/libc/ChangeLog.eglibc
    trunk/libc/stdlib/tst-setcontext.c

Modified: trunk/libc/ChangeLog.eglibc
==============================================================================
--- trunk/libc/ChangeLog.eglibc (original)
+++ trunk/libc/ChangeLog.eglibc Tue Jun 17 11:53:10 2008
@@ -1,3 +1,8 @@
+2008-06-17  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
+
+	* stdlib/tst-setcontext.c: Set back_in_main before exit if
+	getcontext returns ENOSYS.
+
 2008-05-15  Joseph Myers  <joseph@xxxxxxxxxxxxxxxx>
 
 	* posix/globtest.sh: Set HOME with env on test target system.

Modified: trunk/libc/stdlib/tst-setcontext.c
==============================================================================
--- trunk/libc/stdlib/tst-setcontext.c (original)
+++ trunk/libc/stdlib/tst-setcontext.c Tue Jun 17 11:53:10 2008
@@ -150,7 +150,10 @@
   if (getcontext (&ctx[1]) != 0)
     {
       if (errno == ENOSYS)
-	exit (0);
+	{
+	  back_in_main = 1;
+	  exit (0);
+	}
 
       printf ("%s: getcontext: %m\n", __FUNCTION__);
       exit (1);