File: //lib/python2.7/site-packages/pycriu/criu.pyo
ó
k°x]c @ sù d d l Z d d l Z d d l Z d d l Z d d l Z d d l j Z d d d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ
d e f d „ ƒ YZ d
e f d „ ƒ YZ
d e
f d
„ ƒ YZ d e
f d „ ƒ YZ d d d „ ƒ YZ d S( iÿÿÿÿNt
_criu_commc B sD e Z d Z d Z d Z d Z d Z d Z d Z d „ Z
d „ Z RS( s/
Base class for communication classes.
i i i c C s d S( s¢
Connect to criu and return socket object.
daemon -- is for whether or not criu should daemonize if executing criu from binary(comm_bin).
N( ( t selft daemon( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyt connect s c C s d S( s'
Disconnect from criu.
N( ( R ( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyt
disconnect s N( t __name__t
__module__t __doc__t COMM_SKt COMM_FDt COMM_BINt Nonet comm_typet commt skR R ( ( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyR s t
_criu_comm_skc B s) e Z d Z d „ Z d „ Z d „ Z RS( s.
Communication class for unix socket.
c C s | j | _ | | _ d S( N( R R R
( R t sk_path( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyt __init__* s c C s5 t j t j t j ƒ | _ | j j | j ƒ | j S( N( t sockett AF_UNIXt SOCK_SEQPACKETR R R
( R R ( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyR . s c C s | j j ƒ d S( N( R t close( R ( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyR 4 s ( R R R R R R ( ( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyR % s t
_criu_comm_fdc B s) e Z d Z d „ Z d „ Z d „ Z RS( s2
Communication class for file descriptor.
c C s | j | _ | | _ d S( N( R R R
( R t fd( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyR = s c C s( t j | j t j t j ƒ | _ | j S( N( R t fromfdR
R R R ( R R ( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyR A s c C s | j j ƒ d S( N( R R ( R ( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyR G s ( R R R R R R ( ( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyR 8 s t _criu_comm_binc B s) e Z d Z d „ Z d „ Z d „ Z RS( s)
Communication class for binary.
c C s+ | j | _ | | _ d | _ d | _ d S( N( R
R R
R t swrkR ( R t bin_path( ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyR P s c sm t j t j t j ƒ ‰ t j ˆ d t j ƒ } t j ˆ d t j | t j Bƒ t j ˆ d t j ƒ } t j ˆ d t j | t j @ƒ | ˆ _ t j
ƒ } | d k r‡ ‡ f d † } | rt j
ƒ } | d k rò t j ƒ | ƒ q t j d ƒ q%| ƒ n | r%t j
| d ƒ n ˆ d j ƒ t j d ˆ d j d ƒ ƒ d ˆ _ ˆ d ˆ _ ˆ j S( Ni i c sˆ t j d ƒ t j d ƒ t j d ƒ ˆ d j t j d t j ƒ ƒ ƒ t j ˆ j ˆ j d d ˆ d j ƒ g ƒ t j d ƒ d S( Ni i i t iR s %d(
t osR t sendt structt packt getpidt execvR
t filenot _exit( ( t cssR ( s/ /usr/lib/python2.7/site-packages/pycriu/criu.pyt exec_criud s
# R i ( R t
socketpairR R t fcntlt F_GETFDt F_SETFDt
FD_CLOEXECR R t forkt setsidR$ t waitpidR R t unpackt recvR R ( R R t flagst pR&