#include <stdio.h>
#include <unistd.h>
#include "self_criu.h"

int main(int argc, char *argv[]) {
    int counter = 0;

    criu_init(argc, argv, CRIU_CLEANUP_ON_SIGINT);

    while (counter <= 15) {
        printf("Counter: %d (PID: %d)\n", counter++, getpid());
        sleep(1);
    }

    printf("Count reached 15. Exiting.\n");
    return 0;
}
