Re: [PATCH v2] selftests/powerpc: Avoid remaining process/threads

2018-08-13 Thread Michael Ellerman
Breno Leitao writes: > Hello Michael, > > On 08/06/2018 08:06 AM, Michael Ellerman wrote: >> Breno Leitao writes: >> >>> diff --git a/tools/testing/selftests/powerpc/harness.c >>> b/tools/testing/selftests/powerpc/harness.c >>> index 66d31de60b9a..06c51e8d8ccb 100644 >>> ---

Re: [PATCH v2] selftests/powerpc: Avoid remaining process/threads

2018-08-06 Thread Breno Leitao
Hello Michael, On 08/06/2018 08:06 AM, Michael Ellerman wrote: > Breno Leitao writes: > >> diff --git a/tools/testing/selftests/powerpc/harness.c >> b/tools/testing/selftests/powerpc/harness.c >> index 66d31de60b9a..06c51e8d8ccb 100644 >> --- a/tools/testing/selftests/powerpc/harness.c >> +++

Re: [PATCH v2] selftests/powerpc: Avoid remaining process/threads

2018-08-06 Thread Michael Ellerman
Breno Leitao writes: > diff --git a/tools/testing/selftests/powerpc/harness.c > b/tools/testing/selftests/powerpc/harness.c > index 66d31de60b9a..06c51e8d8ccb 100644 > --- a/tools/testing/selftests/powerpc/harness.c > +++ b/tools/testing/selftests/powerpc/harness.c > @@ -85,13 +85,16 @@ int

[PATCH v2] selftests/powerpc: Avoid remaining process/threads

2018-08-03 Thread Breno Leitao
There are some powerpc selftests, as tm/tm-unavailable, that run for a long period (>120 seconds), and if it is interrupted, as pressing CRTL-C (SIGINT), the foreground process (harness) dies but the child process and threads continue to execute (with PPID = 1 now) in background. In this case,