On Tue, 2008-03-18 at 14:14 +0300, Anton Gladkov wrote:
> Test does:
> ..
> pid1 = fork();
> if (pid1 == 0) {
> /* child */
> kill(-pid1, SIGKILL);
> ...
> which is wrong, since pid1 is zero.
Thanks for pointing that out. This is merged.
Regards--
Subrata
> ---
> testcases/kernel/syscalls/kill/kill06.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/testcases/kernel/syscalls/kill/kill06.c
> b/testcases/kernel/syscalls/kill/kill06.c
> index c8c1858..90a5479 100644
> --- a/testcases/kernel/syscalls/kill/kill06.c
> +++ b/testcases/kernel/syscalls/kill/kill06.c
> @@ -125,7 +125,7 @@ int main(int ac, char **av)
> }
> }
> /* Kill all processes in this process group */
> - TEST(kill(-pid1, TEST_SIG));
> + TEST(kill(-getpgrp(), TEST_SIG));
> sleep(300);
> /*NOTREACHED*/
> tst_resm(TINFO, "%d never recieved a"
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list