From: Martin Doucha <mdoucha@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2] Terminate leftover subprocesses when main test process crashes
Date: Fri, 11 Feb 2022 14:29:52 +0100 [thread overview]
Message-ID: <2e218131-be2b-d6c8-51f7-f12b9091e859@suse.cz> (raw)
In-Reply-To: <YgZcu4frLBaKVXL2@yuki>
On 11. 02. 22 13:55, Cyril Hrubis wrote:
> Hi!
>> --- a/lib/tst_test.c
>> +++ b/lib/tst_test.c
>> @@ -1495,6 +1495,9 @@ static int fork_testrun(void)
>> return TFAIL;
>> }
>>
>> + if (tst_test->forks_child)
>> + kill(-test_pid, SIGKILL);
>> +
>
> Maybe we can even print a message here if the kill() returns with 0,
> which would mean that there were any leftover child processes killed.
Feel free to add a message during merge.
--
Martin Doucha mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-02-11 13:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-11 11:44 [LTP] [PATCH v2] Terminate leftover subprocesses when main test process crashes Martin Doucha
2022-02-11 12:55 ` Cyril Hrubis
2022-02-11 13:29 ` Martin Doucha [this message]
2022-02-12 3:03 ` Li Wang
2022-02-18 12:30 ` [LTP] 72b1728674 causing regressions [ [PATCH v2] Terminate leftover subprocesses when main test process crashes] Petr Vorel
2022-02-18 12:42 ` Cyril Hrubis
2022-02-18 14:42 ` Petr Vorel
2022-02-18 14:48 ` Cyril Hrubis
2022-02-18 15:32 ` Petr Vorel
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=2e218131-be2b-d6c8-51f7-f12b9091e859@suse.cz \
--to=mdoucha@suse.cz \
--cc=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/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;
as well as URLs for NNTP newsgroup(s).