diff options
Diffstat (limited to 'linuxthreads/tst-context.c')
-rw-r--r-- | linuxthreads/tst-context.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linuxthreads/tst-context.c b/linuxthreads/tst-context.c index 82a877cffe..c72b2ac101 100644 --- a/linuxthreads/tst-context.c +++ b/linuxthreads/tst-context.c @@ -28,6 +28,12 @@ threadfct (void *arg) { int n = (int) (long int) arg; + if (getcontext (&ctx[n][1]) != 0) + { + printf ("%d: cannot get context: %m\n", n); + exit (1); + } + printf ("%d: %s: before makecontext\n", n, __FUNCTION__); ctx[n][1].uc_stack.ss_sp = stacks[n]; |