[EMAIL PROTECTED] wrote:

^^^^ matt, your email seems mangled

    There is one more issue, and that is an atomicy issue.  We want the
    new signal mask to be set simultaniously with the restoration of the
    context (or most of it).  This means that all signals must be masked
    temporarily while restoring the context.  But don't worry about it,
    I can handle that part as well.  It does mean an extra system call
    but that isn't our concern at the moment.

so the sequence is something like

sigprocmask(SIG_BLOCK, ALL, &ocntx->uc_sigmask);
swap registers+stacks
sigprocmask(SIG_SETMASK, &ncntx->us_sigmask, NULL);

for swapcontext.

am i wrong or is setcontext essentially

swapcontext(&tmpcontext, newcntx); ?

cheers
 simon

--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

Reply via email to