[CRIU] [PATCH 2/2] zdtm: show a process tree before and after c/r

Pavel Emelyanov xemul at parallels.com
Thu Mar 28 10:26:39 EDT 2013


> @@ -138,21 +138,21 @@ static void handle_command()
>  		}
>  		break;
>  	case TEST_SUBREAPER:
> -		test_msg("%d: subreaper(%d)\n", current, cmd.arg1);
> +		test_msg("%3d: subreaper(%d)\n", current, cmd.arg1);

Are these "%3d"-s also part of that patch?

>  		if (prctl(PR_SET_CHILD_SUBREAPER, cmd.arg1, 0, 0, 0) == -1) {
>  			err("PR_SET_CHILD_SUBREAPER");
>  			status = -1;
>  		}
>  		break;
>  	case TEST_SETSID:
> -		test_msg("%d: setsid()\n", current);
> +		test_msg("%3d: setsid()\n", current);
>  		if(setsid() == -1) {
>  			err("setsid");
>  			status = -1;
>  		}
>  		break;
>  	case TEST_DIE:
> -		test_msg("%d: die()\n", current);
> +		test_msg("%3d: die()\n", current);
>  		processes[current].dead = 1;
>  		shutdown(sk, SHUT_RDWR);
>  		exit(0);
> 




More information about the CRIU mailing list