mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-28 21:07:43 +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
@ -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…
x
Reference in New Issue
Block a user