mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
Signed-off-by: Andrew Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
11 lines
215 B
Python
Executable file
11 lines
215 B
Python
Executable file
import os
|
|
|
|
def create_fds():
|
|
(fd1, fd2) = os.pipe()
|
|
return (os.fdopen(fd2, "w"), os.fdopen(fd1, "r"))
|
|
|
|
def filename(pipef):
|
|
return 'pipe:[%d]' % os.fstat(pipef.fileno()).st_ino
|
|
|
|
def dump_opts(sockf):
|
|
return [ ]
|