Skip to content
Commit 9152dd21 authored by Vitaly Ostrosablin's avatar Vitaly Ostrosablin Committed by Pavel Emelyanov
Browse files

test: remap_dead_pid.c: Fix child PID not being printed



There's two issues with this code:

1. Child task is killed by parent faster, than it could print the line.
2. Even if it had time to print it - there would always be 0, because
it's called from child process.

Obviously, this print was meant to be in parent process. So, let's move
it there.

Signed-off-by: default avatarVitaly Ostrosablin <vostrosablin@virtuozzo.com>
Signed-off-by: default avatarAndrei Vagin <avagin@virtuozzo.com>
parent 833fa4d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment