diff options
author | root <root> | 2006-11-30 18:21:14 +0000 |
---|---|---|
committer | root <root> | 2006-11-30 18:21:14 +0000 |
commit | 5989869a493d6bb1fc49ec0f85e45e20922ae241 (patch) | |
tree | 0c77b5e1f51f30177c51cc7e20aa70c642872043 /coro.c | |
parent | 350c37c32ea38f073d330c1f1ca86dbc9e79a936 (diff) |
*** empty log message ***rel-3_4
Diffstat (limited to 'coro.c')
-rw-r--r-- | coro.c | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -100,9 +100,9 @@ trampoline (int sig) #endif /* initialize a machine state */ -void coro_create(coro_context *ctx, - coro_func coro, void *arg, - void *sptr, long ssize) +void coro_create (coro_context *ctx, + coro_func coro, void *arg, + void *sptr, long ssize) { #if CORO_UCONTEXT @@ -142,7 +142,10 @@ void coro_create(coro_context *ctx, nsa.sa_flags = SA_ONSTACK; if (sigaction (SIGUSR2, &nsa, &osa)) - perror ("sigaction"); + { + perror ("sigaction"); + abort (); + } /* set the new stack */ nstk.ss_sp = STACK_ADJUST_PTR (sptr,ssize); /* yes, some platforms (IRIX) get this wrong. */ @@ -150,7 +153,10 @@ void coro_create(coro_context *ctx, nstk.ss_flags = 0; if (sigaltstack (&nstk, &ostk) < 0) - perror ("sigaltstack"); + { + perror ("sigaltstack"); + abort (); + } trampoline_count = 0; kill (getpid (), SIGUSR2); |