aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-07-17 10:05:55 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-07-17 10:05:55 +0200
commitdc97c227c95dd521594f1eaa472399b9fba03b2a (patch)
treef2bc659c7c01a07c39d2b28dee3a8c0744926ffd /stdlib
parentaaf5420c6d1d2f0135a89d08f22200f0dc0777bd (diff)
downloadglibc-dc97c227c95dd521594f1eaa472399b9fba03b2a.tar
glibc-dc97c227c95dd521594f1eaa472399b9fba03b2a.tar.gz
glibc-dc97c227c95dd521594f1eaa472399b9fba03b2a.tar.bz2
glibc-dc97c227c95dd521594f1eaa472399b9fba03b2a.zip
setcontext: Clarify termination when uc_link is the null pointer.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-makecontext.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdlib/tst-makecontext.c b/stdlib/tst-makecontext.c
index 31859007d0..eb6e89bda8 100644
--- a/stdlib/tst-makecontext.c
+++ b/stdlib/tst-makecontext.c
@@ -35,7 +35,9 @@ cf (int i)
printf ("i %d thr %d\n", i, thr);
exit (1);
}
- exit (0);
+
+ /* Since uc_link below has been set to NULL, setcontext is supposed to
+ terminate the process normally after this function returns. */
}
int