[CRIU] [PATCH] zdtm/fork: print children wait status

Andrew Vagin avagin at virtuozzo.com
Fri Aug 17 01:41:37 MSK 2018


Applied, thanks

On Mon, Aug 13, 2018 at 03:34:34PM +0300, Pavel Tikhomirov wrote:
> 05:57:35.640:  1238: FAIL: fork.c:80: Task 16275 didn't exit (errno = 10 (No child processes))
> 
> There is no info about the killing signal in logs, add it.
> 
> https://jira.sw.ru/browse/PSBM-87579
> Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
> ---
>  test/zdtm/transition/fork.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/test/zdtm/transition/fork.c b/test/zdtm/transition/fork.c
> index 4940bc538..9ab160599 100644
> --- a/test/zdtm/transition/fork.c
> +++ b/test/zdtm/transition/fork.c
> @@ -77,12 +77,12 @@ int main(int argc, char **argv)
>  				break;
>  
>  			if (!WIFEXITED(status)) {
> -				fail("Task %d didn't exit", wpid);
> +				fail("Task %d didn't exit with status %d", wpid, status);
>  				goto out;
>  			}
>  
>  			if (WEXITSTATUS(status) != 0) {
> -				fail("Task %d exited with wrong code", wpid);
> +				fail("Task %d exited with wrong status %d", wpid, status);
>  				goto out;
>  			}
>  		}
> -- 
> 2.17.1
> 


More information about the CRIU mailing list