mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 09:35:12 +00:00
All those compel functions can fail by various reasons. It may be status of the system, interruption by user or anything else. It's really desired to handle as many PIE related errors as possible otherwise it's hard to analyze statuses of parasite/restorer and the C/R process. At least warning for logs should be produced or even C/R stopped. Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Andrei Vagin <avagin@gmail.com>
17 lines
505 B
C
17 lines
505 B
C
#ifndef __COMPEL_INFECT_RPC_H__
|
|
#define __COMPEL_INFECT_RPC_H__
|
|
|
|
#include <sys/socket.h>
|
|
#include <sys/un.h>
|
|
#include <stdint.h>
|
|
|
|
struct parasite_ctl;
|
|
extern int __must_check compel_rpc_sync(unsigned int cmd, struct parasite_ctl *ctl);
|
|
extern int __must_check compel_rpc_call(unsigned int cmd, struct parasite_ctl *ctl);
|
|
extern int __must_check compel_rpc_call_sync(unsigned int cmd, struct parasite_ctl *ctl);
|
|
extern int compel_rpc_sock(struct parasite_ctl *ctl);
|
|
|
|
#define PARASITE_USER_CMDS 64
|
|
|
|
|
|
#endif
|