- context->iwannadie = 0; /* useless but makes valgrind happy */
- context->argc = argc;
- context->argv = argv;
- context->startup_func = startup_func;
- context->startup_arg = startup_arg;
- context->cleanup_func = cleanup_func;
- context->cleanup_arg = cleanup_arg;
-
-
- context->free = xbt_ctx_sysv_free;
- context->kill = xbt_ctx_sysv_kill;
- context->schedule = xbt_ctx_sysv_schedule;
- context->yield = xbt_ctx_sysv_yield;
- context->start = xbt_ctx_sysv_start;
- context->stop = xbt_ctx_sysv_stop;
-
- return (xbt_context_t) context;
+ (*smx_process)->context = (xbt_context_t)context;
+ (*smx_process)->iwannadie = 0;
+
+ /* FIXME: Check what should return */
+ return 1;