*/
#include <sys/syscall.h>
+#include <time.h>
#ifndef __NR_pidfd_open
#define __NR_pidfd_open 434
int fd;
pid_t pid;
+ int pidfd;
+ time_t timeout;
ClientType type;
ClientState state;
} vzdump;
};
-struct CleanupData {
- pid_t pid;
- int pidfd;
-};
-
void handle_qmp_handshake(struct Client *client);
void handle_qmp_event(struct Client *client, struct json_object *obj);
void handle_qmp_return(struct Client *client, struct json_object *data, bool error);