mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
rst: Open exe link fd early
Open the exec link at fd restore stage as yet another service fd, then pass it to restover via args and just call prctl on it. This is good for several reasons -- the amount of code required for this is less and opening files should better happen before we switch to restorer (opening will be complex and it's MUCH easier to open all we need in one place). Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -42,4 +42,6 @@ extern int prepare_fd_pid(int pid);
|
||||
extern int prepare_shared_fdinfo(void);
|
||||
extern int get_filemap_fd(int pid, struct vma_entry *vma_entry);
|
||||
|
||||
extern int self_exe_fd;
|
||||
|
||||
#endif /* FILES_H_ */
|
||||
|
Reference in New Issue
Block a user