[lkml]   [2008]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [Devel] Re: [PATCH 08/10] Introduce functions to restart a process
    On Wed, 2008-10-22 at 11:25 +0200, Louis Rilling wrote:
    > Do you checkpoint uninterruptible syscalls as well? If only interruptible
    > syscalls are checkpointed, I'd say that either this syscall uses ERESTARTSYS or
    > ERESTART_RESTARTBLOCK, and then signal handling code already does the trick, or
    > this syscall does not restart itself when interrupted, and well, this is life,
    > userspace just sees -EINTR, which is allowed by the syscall spec.
    > Actually this is how we checkpoint/migrate tasks in interruptible syscalls in
    > Kerrighed and this works.
    > Louis

    I don't know Kerrighed internals but I understand you perform checkpoint
    with a signal handler. Right ? This approach has a huge benefit: the
    signal handling code do all the arch dependant stuff to save registers
    in user memory.

    Gregory Kurz
    Software Engineer @ IBM/Meiosys
    Tel +33 (0)534 638 479 Fax +33 (0)561 400 420

    "Anarchy is about taking complete responsibility for yourself."
    Alan Moore.

     \ /
      Last update: 2008-10-22 12:09    [W:0.040 / U:48.444 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site