mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
page-server: Don't setup options in parent task
When service starts page server all the preparations (log, wdir, img dir, etc.) happen in parent task, then we fork page server. This is OK for now, but when we will serve several requests per connection, all these resources would be leaked in parent. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -263,7 +263,7 @@ extern void *shmalloc(size_t bytes);
|
||||
extern void shfree_last(void *ptr);
|
||||
|
||||
extern int cr_system(int in, int out, int err, char *cmd, char *const argv[]);
|
||||
extern int cr_daemon(int nochdir, int noclose);
|
||||
extern int cr_daemon(int nochdir, int noclose, int *keep_fd, int close_fd);
|
||||
extern int is_root_user(void);
|
||||
|
||||
static inline bool dir_dots(struct dirent *de)
|
||||
|
Reference in New Issue
Block a user