[CRIU] [PATCH 1/8] sig: Don't request for old act when restoring sigactions

Andrew Vagin avagin at parallels.com
Wed Aug 6 05:56:14 PDT 2014


Acked-by: Andrew Vagin <avagin at parallels.com>

On Wed, Aug 06, 2014 at 04:23:59PM +0400, Pavel Emelyanov wrote:
> This old info is simply not used at that place.
> 
> Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
> ---
>  cr-restore.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/cr-restore.c b/cr-restore.c
> index 9e2f61f..1cb659b 100644
> --- a/cr-restore.c
> +++ b/cr-restore.c
> @@ -616,7 +616,7 @@ static int open_vmas(int pid)
>  static rt_sigaction_t sigchld_act;
>  static int prepare_sigactions(int pid)
>  {
> -	rt_sigaction_t act, oact;
> +	rt_sigaction_t act;
>  	int fd_sigact;
>  	SaEntry *e;
>  	int sig;
> @@ -658,7 +658,7 @@ static int prepare_sigactions(int pid)
>  		 * A pure syscall is used, because glibc
>  		 * sigaction overwrites se_restorer.
>  		 */
> -		ret = sys_sigaction(sig, &act, &oact, sizeof(k_rtsigset_t));
> +		ret = sys_sigaction(sig, &act, NULL, sizeof(k_rtsigset_t));
>  		if (ret == -1) {
>  			pr_err("%d: Can't restore sigaction: %m\n", pid);
>  			goto err;
> -- 
> 1.8.4.2
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list