• Pavel Emelyanov's avatar
    xids: Dump and restore tasks' pgid and sid · 814bd5d3
    Pavel Emelyanov authored
    This is preriquisity for terminals handling and just a good
    practice to save and restore everything we can :)
    
    Not all combinations are supported. All the problems we still
    have come from the inability to attach to group/session with
    ID no tasks own as its PID.
    
    This can be workarounded by fork()-ing this pid temporarily,
    but we'd rather think in the direction of modifying the kernel
    to give us direct syscall for this (oh my...)
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    814bd5d3
cr-dump.c 36.1 KB