X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a4464975caf1bb39f0870464045c753af5c578fd..ebad335f389796b72af10c2a52ee6db300980179:/acmacro/context.m4 diff --git a/acmacro/context.m4 b/acmacro/context.m4 index 2c2111314b..f4faefc718 100644 --- a/acmacro/context.m4 +++ b/acmacro/context.m4 @@ -160,7 +160,7 @@ int main(int argc, char *argv[]) uc_child.uc_stack.ss_sp = (char *)stack+(32*1024); uc_child.uc_stack.ss_size = 32*1024; uc_child.uc_stack.ss_flags = 0; - makecontext(&uc_child, child, 2, (void *)12345); + makecontext(&uc_child, child, 0); /* switch into the user context */ if (swapcontext(&uc_main, &uc_child) != 0) @@ -341,7 +341,7 @@ int main(int argc, char *argv[]) uc_handler.uc_stack.ss_sp = (void *)(skaddr + sksize); uc_handler.uc_stack.ss_size = sksize; uc_handler.uc_stack.ss_flags = 0; - makecontext(&uc_handler, handler, 1); + makecontext(&uc_handler, handler, 0); swapcontext(&uc_main, &uc_handler); } #endif