From dc97c227c95dd521594f1eaa472399b9fba03b2a Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 17 Jul 2012 10:05:55 +0200 Subject: setcontext: Clarify termination when uc_link is the null pointer. --- stdlib/tst-makecontext.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stdlib/tst-makecontext.c') diff --git a/stdlib/tst-makecontext.c b/stdlib/tst-makecontext.c index 3185900..eb6e89b 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 -- cgit v1.1