[CRIU] [PATCH 1/2] signal: fix logig about SIGMAX
Pavel Emelyanov
xemul at parallels.com
Mon Dec 3 08:42:16 EST 2012
> @@ -468,8 +468,10 @@ int parasite_dump_sigacts_seized(struct parasite_ctl *ctl, struct cr_fdset *cr_f
>
> fd = fdset_fd(cr_fdset, CR_FD_SIGACT);
>
> - for (i = 1; i < SIGMAX; i++) {
> - if (i == SIGSTOP || i == SIGKILL)
> + for (sig = 1; sig <= SIGMAX; sig++) {
> + int i = sig - 1;
This change will kill compatibility with previous images.
> +
> + if (sig == SIGSTOP || sig == SIGKILL)
> continue;
>
> ASSIGN_TYPED(se.sigaction, args->sas[i].rt_sa_handler);
More information about the CRIU
mailing list