mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
criu-ns: Add unsupported msg for restore-sibling
Currently criu-ns does not support the --restore-sibling option. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
7974229867
commit
5f59a7cc35
1 changed files with 4 additions and 1 deletions
|
|
@ -83,13 +83,16 @@ def run_criu(args):
|
|||
|
||||
|
||||
def wrap_restore():
|
||||
restore_args = sys.argv[1:]
|
||||
if '--restore-sibling' in restore_args:
|
||||
raise OSError(errno.EINVAL, "--restore-sibling is not supported")
|
||||
|
||||
# Unshare pid and mount namespaces
|
||||
if _unshare(CLONE_NEWNS | CLONE_NEWPID) != 0:
|
||||
_errno = ctypes.get_errno()
|
||||
raise OSError(_errno, errno.errorcode[_errno])
|
||||
|
||||
restore_detached = False
|
||||
restore_args = sys.argv[1:]
|
||||
if '-d' in restore_args:
|
||||
restore_detached = True
|
||||
restore_args.remove('-d')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue