Linux Test Project
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Martin Doucha <mdoucha@suse.cz>
Cc: LTP List <ltp@lists.linux.it>
Subject: Re: [LTP] [PATCH] Terminate leftover subprocesses when main test process crashes
Date: Fri, 11 Feb 2022 13:15:14 +0100	[thread overview]
Message-ID: <YgZTUieAoFFLJViP@yuki> (raw)
In-Reply-To: <b71648c0-475a-2404-21a0-f2df8c221ead@suse.cz>

Hi!
> Hmm, that's weird, when I tried that approach yesterday, it kept leaving
> the child behind. Now it seems to be working. I guess I messed up
> somehow and the test program didn't get relinked against new libltp.a...

Just FYI the process group lifetime ends with the last process exitting
it's group. Otherwise there could be all kind of races in the case when
you send the SIGTERM signal to the whole group, e.g. if the leader got
the signal first the rest of the processes may not be terminated if the
group lifetime ended with the leader...

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

      reply	other threads:[~2022-02-11 12:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-10 16:18 [LTP] [PATCH] Terminate leftover subprocesses when main test process crashes Martin Doucha
2022-02-11  6:47 ` Li Wang
2022-02-11  7:03   ` Jan Stancek
2022-02-11  7:09     ` Li Wang
2022-02-11  9:17   ` Martin Doucha
2022-02-11 10:34     ` Li Wang
2022-02-11 11:01       ` Li Wang
2022-02-11 11:35         ` Martin Doucha
2022-02-11 12:15           ` Cyril Hrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YgZTUieAoFFLJViP@yuki \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    --cc=mdoucha@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox