From: Cyril Hrubis <chrubis@suse.cz>
To: Zhao Gongyi <zhaogongyi@huawei.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] lib/tst_test.c: add *cleanup() before exit
Date: Mon, 8 Nov 2021 14:12:02 +0100 [thread overview]
Message-ID: <YYkiIhD8gdfd235F@yuki> (raw)
In-Reply-To: <20211108073828.33126-1-zhaogongyi@huawei.com>
Hi!
> If the main process exit without *cleanup() and when the lib process
> has exit, the test environment would not be reset when the testcase
> needs resource of device or tmpfs.
This looks like working around the real problem. The test library
process is supposed to outlive the child in all circumstances.
What exactly happens in your case that this code gets triggered?
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2021-11-08 13:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-08 7:38 [LTP] [PATCH] lib/tst_test.c: add *cleanup() before exit Zhao Gongyi
2021-11-08 9:08 ` Li Wang
2021-11-08 13:12 ` Cyril Hrubis [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-11-09 1:38 zhaogongyi
2021-11-09 10:33 ` Cyril Hrubis
2021-11-09 12:02 ` Li Wang
2021-11-09 11:28 zhaogongyi
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=YYkiIhD8gdfd235F@yuki \
--to=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
--cc=zhaogongyi@huawei.com \
/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