2
0
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:
Adrian Reber 2018-06-28 12:43:27 +00:00 committed by Andrei Vagin
parent f8601b3506
commit ae76eb349e

View File

@ -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;