Changes

Jump to: navigation, search

Inheriting FDs on restore

92 bytes removed, 12:19, 19 July 2020
External TTYs
Here is an example of dumping and restoring an external TTY:
<pre>
$ # setsid --ctty ipython
In [1]: import os
In [2]: st = os.stat("/proc/self/fd/0")
In [3]: print ("tty[%x:%x]" % (st.st_rdev, st.st_dev)) tty:[88008802:d19] $ps -C sleep PID TTY TIME CMD 4109 ? 00:00:00 sleep $ ./# criu dump -t `pgrep ipython` --external 'tty[88008802:d19]' -D imgs -v4 -t 4109 $ ./# criu restore --inherit-fd 'fd[1]:tty[88008802:d9]' -D imgs -v4
</pre>
164
edits

Navigation menu