mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
criu service: support status-fd
Make the --status-fd option also work in 'criu service' mode to avoid race conditions during testing. Signed-off-by: Adrian Reber <areber@redhat.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
f8601b3506
commit
ae76eb349e
1 changed files with 3 additions and 0 deletions
|
|
@ -1206,6 +1206,9 @@ int cr_service(bool daemon_mode)
|
|||
if (setup_sigchld_handler())
|
||||
goto err;
|
||||
|
||||
if (close_status_fd())
|
||||
return -1;
|
||||
|
||||
while (1) {
|
||||
int sk;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue